Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tabbar and Orgmode

Tags:

emacs

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.

like image 691
Rockiger Avatar asked Feb 26 '26 04:02

Rockiger


2 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)

like image 104
Oleg Pavliv Avatar answered Mar 01 '26 08:03

Oleg Pavliv


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)))
like image 23
Clément B. Avatar answered Mar 01 '26 06:03

Clément B.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!