Change org-insert-heading header

I would like to change the shortcut defined for org-insert-heading (in org-mode, in emacs).

This M-<RET>, and I would like to have C-c C-j(for example, in AUCTex mode).

How to do this (no variable in org-customize)?

+4
source share
4 answers

You can use erikstokes as an alternative to the answer define-keywith the appropriate layout. Set this to .emacs.d/init.el:

(define-key org-mode-map (kbd "C-c C-j") 'org-insert-heading)

This will add it to the org-mode keyboard layout, and it will not add the key locally every time the mode is set to org-mode(it does not matter, but running it on every hook can cause problems for some commands.

+3

C-c C-j , . , , org-mode,

(add-hook 'org-mode-hook
      '(lambda ()
         (local-set-key "\C-c\C-j" 'org-insert-heading)
         ))

.emacs Emacs ( .emacs). , org-mode, local-set-key , .

+2

"org-auctex-keys.el", , , AUCTeX Org.

https://github.com/fniessen/org-auctex-key-bindings.

+1

(org-defkey org-mode-map "\ C-c\C-j" 'org-meta-return)

0

All Articles