0

I switch windows with M-left and M-right. Also Tab, S-Tab and C-Tab are hardwired into my spine. Since I use markdown-mode my workspeed has halved.

How do I disable that markdown-mode re-assigns those keys on loading. The keys I describe are carefully handcrafted shortcuts from my .emacs file, set via global-set-key.

(global-set-key [S-iso-lefttab]  'dabbrev-expand)
(global-set-key [C-tab]  'ispell-word)
(global-set-key [M-up]     'windmove-up)
(global-set-key [M-down]   'windmove-down)
(global-set-key [M-left]  'windmove-left)
(global-set-key [M-right]  'windmove-right)
towi
  • 21,587
  • 28
  • 106
  • 187

1 Answers1

2

Set those keys also in markdown-mode, in its keymap (probably markdown-mode-map). For example:

(define-key markdown-mode-map [C-tab] 'ispell-word)

The problem you saw comes from the fact that a local binding overrides a global one. See the Elisp manual, node Active Keymaps.

Drew
  • 29,895
  • 7
  • 74
  • 104