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 21:11:54 +0300 Message-ID: <87si8ass9h.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> <87mvyj2ufq.fsf@gmail.com> <874mkrggsi.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJQP4-0005UP-6P for guix-devel@gnu.org; Sun, 26 Jul 2015 14:12:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJQP1-0003qC-1I for guix-devel@gnu.org; Sun, 26 Jul 2015 14:12:02 -0400 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:36746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJQP0-0003pi-Pp for guix-devel@gnu.org; Sun, 26 Jul 2015 14:11:58 -0400 Received: by lagw2 with SMTP id w2so37256354lag.3 for ; Sun, 26 Jul 2015 11:11:58 -0700 (PDT) In-Reply-To: <874mkrggsi.fsf@openmailbox.org> (Mathieu Lirzin's message of "Sun, 26 Jul 2015 16:00:29 +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-26 17:00 +0300) wrote: > Alex Kost writes: > >> Mathieu Lirzin (2015-07-25 21:51 +0300) wrote: >>> What do you think about integrating it in section "Contributing" instead? >> >> Maybe, I don't have a preference here. > > Since it's not really related to package management, I think it would be > preferable to move this in the node "The perfect Setup". OK, you convinced me :-) I'll put the docs there. >>> 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"? :-) > > I agree it's not really important for advanced Emacs users who will have > no problem choosing something adapted to their setup. Nonetheless IMHO > consistency and simplicity helps newcomers to understand, So I will be > in favour of anything that follows this convention. :) > > (global-set-key (kbd "C-c ") foo-function-callable-anywhere) > > (define-key bar-mode-map > (kbd "C-c C-") > 'foo-function-for-bar-mode) According to (info "(elisp) Key Binding Conventions"), 'C-c LETTER' bindings are reserved for users, so I think using "C-c u" in that example is absolutely fine, don't you agree? -- Alex