From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH 4/7] emacs: Add 'guix-devel-use-current-module'. Date: Sun, 26 Jul 2015 11:29:29 +0300 Message-ID: <87mvyj2ufq.fsf@gmail.com> References: <1437814197-6321-1-git-send-email-alezost@gmail.com> <1437814197-6321-5-git-send-email-alezost@gmail.com> <87r3nwrrze.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJHJM-0003Nc-FD for guix-devel@gnu.org; Sun, 26 Jul 2015 04:29:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJHJJ-0007bo-7O for guix-devel@gnu.org; Sun, 26 Jul 2015 04:29:32 -0400 Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:35161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJHJI-0007bk-V3 for guix-devel@gnu.org; Sun, 26 Jul 2015 04:29:29 -0400 Received: by lahh5 with SMTP id h5so33496069lah.2 for ; Sun, 26 Jul 2015 01:29:28 -0700 (PDT) In-Reply-To: <87r3nwrrze.fsf@openmailbox.org> (Mathieu Lirzin's message of "Sat, 25 Jul 2015 20:51:01 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mathieu Lirzin Cc: guix-devel@gnu.org Mathieu Lirzin (2015-07-25 21:51 +0300) wrote: > Alex Kost writes: > >> * emacs/guix-guile.el (guix-guile-current-module): New function. >> * emacs/guix-devel.el: New file. >> (guix-devel-use-modules, guix-devel-use-current-module): New functions. >> * doc/emacs.texi (Emacs Development): New node. Document >> 'guix-devel-use-current-module'. > > [...] > >> @@ -19,7 +19,8 @@ guix package}). Specifically, ``guix.el'' makes it easy to: >> * Usage: Emacs Usage. Using the interface. >> * Configuration: Emacs Configuration. Configuring the interface. >> * Prettify Mode: Emacs Prettify. Abbreviating @file{/gnu/store/@dots{}} file names. >> -* Completions: Emacs Completions. Completing @command{guix} shell command. >> +* Completions: Emacs Completions. Completing @command{guix} shell command. >> +* Development: Emacs Development. Tools for Guix developers. >> @end menu > > What do you think about integrating it in section "Contributing" instead? Maybe, I don't have a preference here. >> +And as always if you use a command often, it is a good idea to bind a >> +key to it, for example like this: >> + >> +@example >> +(with-eval-after-load 'scheme >> + (define-key scheme-mode-map (kbd "C-c u") >> + 'guix-devel-use-current-module)) >> +@end example > > I remember reading somewhere in the Emacs manual that "C-c " is > meant for user customization in the global key map (can't remember where > ;)). So what suggesting "C-c C-u" which is a mode specific key binding? I don't know whether there is such (or any other) suggestion anywhere. But since that was just an example, not a recommendation (not even a suggestion), I think it doesn't matter what key binding to use there. Do you have any preference? What about "C-H-M-s-u"? :-) -- Alex