mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
guix: edit: Make nano the default editor.
* guix/scripts/edit.scm: Make nano the default editor. Nano is sensible default, as it is installed by base system. For development, user can set custom value for $EDITOR. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
5fbc753ab5
commit
47f82b310e
1 changed files with 3 additions and 4 deletions
|
@ -56,10 +56,9 @@ (define (show-help)
|
|||
(show-bug-report-information))
|
||||
|
||||
(define %editor
|
||||
;; XXX: It would be better to default to something more likely to be
|
||||
;; pre-installed on an average GNU system. Since Nano is not suited for
|
||||
;; editing Scheme, Emacs is used instead.
|
||||
(make-parameter (or (getenv "VISUAL") (getenv "EDITOR") "emacs")))
|
||||
;; Nano is sensible default, as it is installed by base system.
|
||||
;; For development, user can set custom value for $EDITOR.
|
||||
(make-parameter (or (getenv "VISUAL") (getenv "EDITOR") "nano")))
|
||||
|
||||
(define (search-path* path file)
|
||||
"Like 'search-path' but exit if FILE is not found."
|
||||
|
|
Loading…
Reference in a new issue