[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCHES] Fix some ‘guix edit’ bad assumptions.
From: |
Mathieu Lirzin |
Subject: |
[PATCHES] Fix some ‘guix edit’ bad assumptions. |
Date: |
Sat, 21 Nov 2015 16:31:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Hi,
As every sane person I use Emacs for my editing. In order to have the
features of ‘emacsclient’ (fast startup + buffer sharing) and the
simplicity of ‘emacs’ (no daemon management), I have in my environment:
export VISUAL="emacsclient --alternate-editor=''"
this automatically starts the daemon if it is not already running and
then launches ‘emacsclient’. However, this does not work with ‘guix
edit’ because a single word command is assumed for $VISUAL and $EDITOR.
so here is a fix:
0001-edit-Allow-command-line-arguments-in-VISUAL-and-EDIT.patch
Description: Text Data
Moreover I think that assuming a running emacs daemon by default if
$VISUAL and $EDITOR are not set is not an obvious decision. My first
intuition would be to use GNU Nano which is often installed on GNU
systems. But after trying to edit a package with it... I have come to
the conclusion that it was more reasonable to use 'emacs' instead.
I have no strong opinion on this (other than being against defaulting to
VI of course). ;)
0002-edit-Don-t-assume-that-an-emacs-daemon-is-running.patch
Description: Text Data
TIA,
--
Mathieu Lirzin
- [PATCHES] Fix some ‘guix edit’ bad assumptions.,
Mathieu Lirzin <=