help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using auctex key bindings in C/C++ mode


From: Sivaram Neelakantan
Subject: Re: using auctex key bindings in C/C++ mode
Date: Mon, 27 Feb 2017 08:15:26 +0530
User-agent: Gnus/5.130015 (Ma Gnus v0.15) Emacs/25.1 (windows-nt)

On Sun, Feb 26 2017,Óscar Fuentes wrote:


[snipped 7 lines]

> I don't think so.

that helps.

>
>> And is there a canonical way to unbind and rebind the defaults in
>> C/C++ mode?
>
> See help for functions `local-set-key', `local-unset-key' and variable
> `c-mode-common-hook'.
>
> For instance (untested):
>
> (defun my-c-mode-common-hook ()
>   (local-set-key (kbd "C-c C-c") 'compile)
>   (local-set-key (kbd "C-;") 'comment-region))
>
> (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
>
>
> For learning more, read about "Hooks" and "Key Bindinds" on the Emacs
> manual.

Thanks, will try these out.


sivaram
-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]