unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Xah <xahlee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Adding a keybinding for a major mode
Date: Fri, 17 Oct 2008 00:32:41 +0200	[thread overview]
Message-ID: <48F7C109.3040505@gmail.com> (raw)
In-Reply-To: <9927493c-c6ba-4298-8a31-fc2b11d8cc59@q26g2000prq.googlegroups.com>

Xah wrote:
> On Oct 13, 6:40 am, Corey Foote <coreyfo...@hotmail.com> wrote:
>> How come the short cuts for M-x comment region (C-c C-c) and M-x (C-u C-c C-c) uncomment-region only work in some major modes an not others (for example emacs-lisp mode)? And how would I enable them for certain modes?
> 
> maybe because comment-region and uncomment-region are probably
> replaced by comment-dwim (Ctrl+;).

Yes.

> Lennart Borgman wrote:
> «Maybe because they break the conventions?
>  (info "(elisp) Key Binding Conventions")
> »
> 
> emacs lisp mode is a old, basic mode... i doubt it breaks emacs
> keybinding conventions.


You are right, I should learn to read a bit better before I answer:

C-c C-c is reserved for major modes ...




  reply	other threads:[~2008-10-16 22:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.929.1223905211.25473.help-gnu-emacs@gnu.org>
2008-10-16 21:27 ` Adding a keybinding for a major mode Xah
2008-10-16 22:32   ` Lennart Borgman (gmail) [this message]
2008-10-13 13:40 Corey Foote
2008-10-13 14:47 ` Lennart Borgman (gmail)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48F7C109.3040505@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=xahlee@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).