all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sivaram Neelakantan <nsivaram.net@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: using auctex key bindings in C/C++ mode
Date: Mon, 27 Feb 2017 08:14:27 +0530	[thread overview]
Message-ID: <87y3ws8i9g.fsf@gmail.com> (raw)
In-Reply-To: 877f4cre95.fsf@mailbox.org

On Sun, Feb 26 2017,Nathanael Schweers wrote:


[snipped 7 lines]

> I’m not sure, as I don’t write that much C or C++ code.  You can find
> out easily what those particalar bindings are for your configuration.
> Just press C-h k C-c C-c to check what the current binding is (there may
> be none, which would be good).  The same goes for C-h k C-;

Oh, I'm aware of the bindings.  What I meant was, I'm so used to
auctex bindings for compiling/commenting that I thought it would be a
good idea to use similar bindings for C/C++

>
>> And is there a canonical way to unbind and rebind the defaults in
>> C/C++ mode?
>
> I’m not sure if it’s canonical; just say something like this:
>
> (add-hook
>  'c++-mode-hook
>  (lambda () (define-key c++-mode-map (kbd "C-c C-c") 'compile)))

Thanks, will try these out

[snipped 10 lines]


sivaram
-- 




  reply	other threads:[~2017-02-27  2:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-26 17:31 using auctex key bindings in C/C++ mode Sivaram Neelakantan
2017-02-26 17:47 ` Óscar Fuentes
2017-02-27  2:45   ` Sivaram Neelakantan
2017-02-26 18:36 ` Nathanael Schweers
2017-02-27  2:44   ` Sivaram Neelakantan [this message]
2017-02-27  4:40 ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=87y3ws8i9g.fsf@gmail.com \
    --to=nsivaram.net@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.