Make M-RET better in Org Mode

If you’re an Org mode user you probably know that Meta+Return can be used to create a new headline, list item, or table field. One minor annoyance is that by default it will split line you’re on at the point, which is almost never what you want. Therefore, I’ve developed the habit of always going to the end of the line before invoking Meta+Return.

Silly me. This is Emacs so of course there’s a way to get the desired behavior: merely set org-M-RET-may-split-line to '((default . nil)) as explained in this Emacs subreddit post.

Actually, you can have finer control by setting it for headlines, list items, or table fields individually. The “default” selection as shown above chooses the result for any not already listed. Check out the org-M-RET-may-split-line variable documentation for details.

It’s not a big thing, of course, but making that change will definitely make my life a bit easier.

This entry was posted in General and tagged , . Bookmark the permalink.