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:
parent
2d0854eef2
commit
f5477e58fc
10
config.org
10
config.org
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user