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.
try the following
(define-key org-mode-map (kbd "C-<tab>") 'tabbar-forward)
(define-key org-mode-map (kbd "C-S-<tab>") 'tabbar-backward)
For the sake of following org-mode tutorial rules, if you have the following in your .emacs:
(require 'org-install)
The above will not work. You can brute force your way out of it 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)))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With