A Better RETURN for Org

John Kitchin has an interesting piece of Elisp that helps when you’re writing in structured Org mode. If you’re in a bullet list, for example, you can type Meta+Return (or is it Ctrl+Return? I always get it wrong) at the end of an item to automatically begin another list item. Kitchin’s code allows you to just type return and it will do the right thing. It’s return-dwim. A double Return will end the structuring and do what a normal Return does now.

The code works for bullet lists, headings, and tables. I like it because I don’t have to stop and think which modifier key to use or, worse yet, undo the change and try the other modifier. If you do a lot of writing in Org mode, you should probably try Kitchin’s code out. It’s short and easy to paste into your init.el and if you don’t like it, you can just delete it. I’ve been using it for a couple of days and I’m still not sure if I’m going to keep it but, as I said, it’s easy to delete if I decide I don’t like it.

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