Add a keybinding for adding a new heading in org-mode

I went with <C-M-return>, it seemed nice and intuitive.
This commit is contained in:
Camden Dixie O'Brien 2021-01-01 00:00:31 +00:00
parent 2d0854eef2
commit f5477e58fc

View File

@ -70,6 +70,16 @@ needs to be set up to install them if they aren't already.
(require 'org-tempo))
#+end_src
A keybinding to add a new heading is super useful
#+begin_src emacs-lisp
(add-hook 'org-mode-hook
(lambda ()
(define-key org-mode-map
(kbd "<C-M-return>")
'org-insert-heading-after-current)))
#+end_src
** Source Blocks
Pressing tab inside a source block should indent appropriately for its
language.