guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/04: guix: edit: Make nano the default editor.


From: guix-commits
Subject: 03/04: guix: edit: Make nano the default editor.
Date: Mon, 27 Apr 2020 17:29:51 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 47f82b310e320ed6c0282c89748485d1f9212d2c
Author: Raghav Gururajan <address@hidden>
AuthorDate: Wed Apr 22 20:55:40 2020 -0400

    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 <address@hidden>
---
 guix/scripts/edit.scm | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/guix/scripts/edit.scm b/guix/scripts/edit.scm
index a6fd1d2..43f3011 100644
--- a/guix/scripts/edit.scm
+++ b/guix/scripts/edit.scm
@@ -56,10 +56,9 @@ Start $VISUAL or $EDITOR to edit the definitions of 
PACKAGE...\n"))
   (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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]