keyboard shortcuts - Override Ctrl-TAB in EMACS org.mode -


i use ctrl + tab in emacs own use, emacs org mode has bound. how can use own binding instead of org-mode binding.

in .emacs file use:

(global-set-key (kbd "<c-tab>") 'switch-view ) 

and works everywhere except in org-mode

the key binding describe defined in org.el this:

(org-defkey org-mode-map [(control tab)] 'org-force-cycle-archived) 

this means valid in org-mode-map, 1 of org-mode's local keymaps. following code adds hook run when org-mode starts. removes key binding org-mode-map.

(add-hook 'org-mode-hook           '(lambda ()              (define-key org-mode-map [(control tab)] nil))) 

add code .emacs file , restart emacs.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -