Re: [PATCHES] Fix some ‘guix edit’ bad assumptions.

2015-11-24 Thread Ludovic Courtès
Mathieu Lirzin skribis: > From de988b953de96a17f79d5748541611fbb3d554f9 Mon Sep 17 00:00:00 2001 > From: Mathieu Lirzin > Date: Sat, 21 Nov 2015 14:37:54 +0100 > Subject: [PATCH 1/2] edit: Allow command line arguments in $VISUAL and > $EDITOR. > > * guix/scripts/edit.scm (guix-edit): Fix the as

Re: [PATCHES] Fix some ‘guix edit’ bad assumptions.

2015-11-24 Thread Ludovic Courtès
Mathieu Lirzin skribis: > Hi Alex, > > Alex Kost writes: > >> If instead of the default package location directory >> ("~/.config/guix/latest" or whatever), you want to go to another >> directory — for instance, to your guix git repo — you can use: >> >> (setq guix-directory "~/src/guix") > > Th

Re: [PATCHES] Fix some ‘guix edit’ bad assumptions.

2015-11-21 Thread Mathieu Lirzin
Hi Alex, Alex Kost writes: > If instead of the default package location directory > ("~/.config/guix/latest" or whatever), you want to go to another > directory — for instance, to your guix git repo — you can use: > > (setq guix-directory "~/src/guix") This is definitely a convenient trick, tha

Re: [PATCHES] Fix some ‘guix edit’ bad assumptions.

2015-11-21 Thread Alex Kost
Mathieu Lirzin (2015-11-21 18:31 +0300) wrote: > Hi, > > As every sane person I use Emacs for my editing. Hi, it's not related, but just in case you don't know, there is "M-x guix-edit" command (or "M-x guix e" which is the same); package names are completed. If instead of the default package lo

Re: [PATCHES] Fix some ‘guix edit’ bad assumptions.

2015-11-21 Thread Mathieu Lirzin
l...@gnu.org (Ludovic Courtès) writes: > Mathieu Lirzin skribis: > >> export VISUAL="emacsclient --alternate-editor=''" > > I didn’t know that including arguments in $VISUAL was supposed to work. > Does it actually work with other programs? It works with ‘git commit/rebase’ and using the 'v' k

Re: [PATCHES] Fix some ‘guix edit’ bad assumptions.

2015-11-21 Thread Ludovic Courtès
Mathieu Lirzin skribis: > export VISUAL="emacsclient --alternate-editor=''" I didn’t know that including arguments in $VISUAL was supposed to work. Does it actually work with other programs? > + (let ((editor-args (string-split (%editor) #\space)) > +(file-names (app

[PATCHES] Fix some ‘guix edit’ bad assumptions.

2015-11-21 Thread Mathieu Lirzin
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 d