From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53808) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRQDk-0001Ng-85 for guix-patches@gnu.org; Wed, 22 Apr 2020 21:00:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRQDj-0005Zb-Fr for guix-patches@gnu.org; Wed, 22 Apr 2020 21:00:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRQDj-0005X1-0d for guix-patches@gnu.org; Wed, 22 Apr 2020 21:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRQDi-0005uH-Un for guix-patches@gnu.org; Wed, 22 Apr 2020 21:00:02 -0400 Subject: [bug#40785] guix: edit: Make nano the default editor. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:53494) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRQCr-0000pK-IM for guix-patches@gnu.org; Wed, 22 Apr 2020 20:59:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRQCp-00020q-M2 for guix-patches@gnu.org; Wed, 22 Apr 2020 20:59:09 -0400 Received: from knopi.disroot.org ([178.21.23.139]:48220) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1jRQCo-0001ce-UY for guix-patches@gnu.org; Wed, 22 Apr 2020 20:59:07 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CC3E6217FA for ; Thu, 23 Apr 2020 02:59:03 +0200 (CEST) Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kwb9DnIeM1FK for ; Thu, 23 Apr 2020 02:59:01 +0200 (CEST) Date: Wed, 22 Apr 2020 20:58:50 -0400 From: Raghav Gururajan Message-ID: <20200422205850.518dbe3e.raghavgururajan@disroot.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/QW_/LwrUcFglDwbBEVjp8/p" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40785@debbugs.gnu.org --MP_/QW_/LwrUcFglDwbBEVjp8/p Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline --MP_/QW_/LwrUcFglDwbBEVjp8/p Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-guix-edit-Make-nano-the-default-editor.patch >From c0770e600823315dddb6a6c273e461c98195622f Mon Sep 17 00:00:00 2001 From: Raghav Gururajan 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 --MP_/QW_/LwrUcFglDwbBEVjp8/p--