tags:

views:

147

answers:

2
+2  Q: 

Tabbar and Orgmode

Hi, how to overwrite keybinding in orgmode, that tabbar still works with [C-Tab] and [C-S-iso-lefttab]

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

My Emacs version is 23.1 and I am using org-mode shipped with Emacs.

+5  A: 

try the following

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

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

Oleg Pavliv
Works great, thanks!
Rockiger
A: 

For the general solution, see http://stackoverflow.com/questions/683425/globally-override-key-binding-in-emacs

You create your own minor mode with your preferred keybindings and enable it globally, so that it overrides all other keybindings.

Ryan Thompson