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).
M-<RET>
C-c C-j
How to do this (no variable in org-customize)?
You can use erikstokes as an alternative to the answer define-keywith the appropriate layout. Set this to .emacs.d/init.el:
define-key
.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.
org-mode
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 , .
.emacs
local-set-key
"org-auctex-keys.el", , , AUCTeX Org.
https://github.com/fniessen/org-auctex-key-bindings.
(org-defkey org-mode-map "\ C-c\C-j" 'org-meta-return)