Started questioning why after hitting RETURN while in lists I have to hit TAB to get indented properly. Kind of a dead giveaway that I should be return-and-indenting! Looked at org-return
to find that it has an argument about indenting and then saw that org-return-indent
passes it for you. With that in mind, RETURN is bound to that now.
You probably want org-return-indent
bound to return
. It saves a lot of actions.
Grant Rettke: You Probably Want org-return-indent Bound to Return http://t.co/4byUo18vvQ
What’s the best way to do this binding? I played around with customize but couldn’t find it, nor did a short googling help.
THOMAS:
One way to do it.
(defun gcr/org-mode-hook ()
(local-set-key (kbd “<return>”) ‘org-return-indent))
(add-hook ‘org-mode-hook ‘gcr/org-mode-hook)
See this post, too: http://ergoemacs.org/emacs/emacs_key_notation_return_vs_RET.html
Thanks. I had to replace “” with “RET” (found out by describe-key and pressing enter) then I get the functionality.
However, there is a disadvantage: if I want to add a “**” point below a “*” point, I have to manually unindent, since it’s not recognized when indented.
Hm, that should have been “<return>” in the previous comment but HTML ate the comparison operators.
THOMAS:
`org-meta-return’ might give you what you want; Org comes with it bound to M-return. That is what I use to add new headings and list items.
THOMAS:
See why you had to bind return instead of RET:
http://ergoemacs.org/emacs/emacs_key_notation_return_vs_RET.html
Grant Rettke: You Probably Want org-return-indent Bound to Return #emacs #orgmode http://t.co/lq7eHgoYcl