Amet Alvirde
Amet Alvirde

Reputation: 1483

How to Remap org-mode keybindings?

As mentioned in this question, I can not use org mode properly within tmux. So, I would want to remap keybindings like alt+RET for creating a new bullet item or shift + left/right arrow to change an item hierarchy.

How would I do that?

Upvotes: 0

Views: 1929

Answers (1)

William Cummings
William Cummings

Reputation: 21

org-insert-heading is bound to M-<RET> by default, you just need to remap it

(define-key org-mode-map (kbd "M-<RET>") nil) ; remove old binding
(define-key org-mode-map (kbd "C-c n") 'org-insert-heading) ; add new tmux-friendly binding

Upvotes: 1

Related Questions