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
@ -56,10 +56,9 @@ Start $VISUAL or $EDITOR to edit the definitions of PACKAGE...\n"))
|
|||||||
(show-bug-report-information))
|
(show-bug-report-information))
|
||||||
|
|
||||||
(define %editor
|
(define %editor
|
||||||
;; XXX: It would be better to default to something more likely to be
|
;; Nano is sensible default, as it is installed by base system.
|
||||||
;; pre-installed on an average GNU system. Since Nano is not suited for
|
;; For development, user can set custom value for $EDITOR.
|
||||||
;; editing Scheme, Emacs is used instead.
|
(make-parameter (or (getenv "VISUAL") (getenv "EDITOR") "nano")))
|
||||||
(make-parameter (or (getenv "VISUAL") (getenv "EDITOR") "emacs")))
|
|
||||||
|
|
||||||
(define (search-path* path file)
|
(define (search-path* path file)
|
||||||
"Like 'search-path' but exit if FILE is not found."
|
"Like 'search-path' but exit if FILE is not found."
|
||||||
|
Loading…
Reference in New Issue
Block a user