From: Raghav Gururajan <raghavgururajan@disroot.org>
To: 40785@debbugs.gnu.org
Subject: [bug#40785] guix: edit: Make nano the default editor.
Date: Wed, 22 Apr 2020 20:58:50 -0400 [thread overview]
Message-ID: <20200422205850.518dbe3e.raghavgururajan@disroot.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: 0001-guix-edit-Make-nano-the-default-editor.patch --]
[-- Type: text/x-patch, Size: 1339 bytes --]
From c0770e600823315dddb6a6c273e461c98195622f Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Wed, 22 Apr 2020 20:55:40 -0400
Subject: [PATCH] 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.
---
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 a6fd1d2751..43f3011869 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."
--
2.26.1
next reply other threads:[~2020-04-23 1:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-23 0:58 Raghav Gururajan [this message]
2020-04-27 21:28 ` bug#40785: guix: edit: Make nano the default editor Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200422205850.518dbe3e.raghavgururajan@disroot.org \
--to=raghavgururajan@disroot.org \
--cc=40785@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.