Tabbar and Orgmode

how to overwrite keybinding in orgmode, this tab still works with [C-Tab] and [CS-iso-lefttab]

I tried it like this: (add-hook 'org-mode-hook (lambda () (global-set-key [C-S-iso-lefttab] 'tabbar-backward) (global-set-key [C-tab] 'tabbar-forward) ))

My version of Emacs is 23.1 and I use the org-mode that comes with Emacs.

+3
source share
3 answers

try the following

(define-key org-mode-map (kbd "C-<tab>") 'tabbar-forward)

(define-key org-mode-map (kbd "C-S-<tab>") 'tabbar-backward)

+7
source

For the following org-mode training course rules, if your .emacs has the following:

(require 'org-install)

The above will not work. You can go too far and add

(require 'org)

But a more elegant solution would be to embed your (define-key ...) in

(eval-after-load "org"
  '(progn
     (define-key org-mode-map (kbd "C-<tab>") 'tabbar-forward)))
+1
source

. Emacs

You create your own minor mode using your preferred key bindings and turn it on all over the world so that it overlaps all other key bindings.

0
source

Source: https://habr.com/ru/post/1714614/


All Articles