gaje

2016/06/26

How to swap control-m and control-j in Emacs

Filed under: uncategorized — Gan @ 8:09 AM

Emacs often changes the behavior suddenly and drastically. Recent surprise to me was that role of ctrl-j (newline and indent) and ctrl-m (newline) switched out of the blue. I don’t understand the developer’s sense of changing user interface of a multi-decade years old software. But luckily, emacs has very powerful customization ability.

Adding this line reverts the key bindings back.
(when (fboundp 'electric-indent-mode) (electric-indent-mode -1))

I appreciate this post
http://emacs.stackexchange.com/questions/5939/how-to-disable-auto-indentation-of-new-lines

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress