unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40785] guix: edit: Make nano the default editor.
@ 2020-04-23  0:58 Raghav Gururajan
  2020-04-27 21:28 ` bug#40785: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Raghav Gururajan @ 2020-04-23  0:58 UTC (permalink / raw)
  To: 40785

[-- 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#40785: guix: edit: Make nano the default editor.
  2020-04-23  0:58 [bug#40785] guix: edit: Make nano the default editor Raghav Gururajan
@ 2020-04-27 21:28 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-04-27 21:28 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40785-done

Hi,

Raghav Gururajan <raghavgururajan@disroot.org> skribis:

>>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.

Applied, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-27 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-23  0:58 [bug#40785] guix: edit: Make nano the default editor Raghav Gururajan
2020-04-27 21:28 ` bug#40785: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).