How to set a keybinding which is valid in all modes in Emacs
Posted
by AnotherEmacsLearner
on Stack Overflow
See other posts from Stack Overflow
or by AnotherEmacsLearner
Published on 2010-04-09T09:29:19Z
Indexed on
2010/04/09
9:33 UTC
Read the original article
Hit count: 329
Hi,
I've configured my emacs to use M-j as backward-char by
(global-set-key (kbd "M-j") 'backward-char) ; was indent-new-comment-line
in my .emacs file. This works fine in many modes (text/org/lisp).
But in c++-mode & php-mode it is bound to the default c-indent-new-comment-line
How can I bind M-j to use backward-char in these modes too.
And in general for ALL modes.
Thanks,
AnotherEmacsLearner
© Stack Overflow or respective owner