When I press M-<up>
in org-mode
to move my headers I get this message in the minibuffer:
There is no other window
Why does my keybinding not work?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityWhen I press M-<up>
in org-mode
to move my headers I get this message in the minibuffer:
There is no other window
Why does my keybinding not work?
Your M-<up>
is mapped on scroll-other-window-down
somewhere.
You really need to find where this shortcut is define.
If you don't find the pb you can eventually overwrite the shortcuts but this turnaround is not recommended.
(require 'org)
(define-key org-mode-map (kbd "M-<down>") 'org-metadown)
(define-key org-mode-map (kbd "M-<up>") 'org-metaup)
or
(eval-after-load "org"
'(progn
(define-key org-mode-map (kbd "M-<down>") 'org-metadown)
(define-key org-mode-map (kbd "M-<up>") 'org-metaup)))
.emacs
as you suggest: Symbol's value as variable is void: org-mode-map
.
– falematte
Dec 11 '15 at 7:16
File error: Cannot open load file, org-mode
– falematte
Dec 11 '15 at 13:47
C-h k M-<up>
and see what it says. Start Emacs without your init file (emacs -Q
), and then bisect the init file until you find out what is causing the change in keybindings. – Dan♦ Dec 9 '15 at 11:24C-h k M -<up>
I getM-prior
! I do not think it is caused by my init file. How can I change this? – falematte Dec 9 '15 at 13:42M-prior
(orM-<prior>
) is a key sequence, not a command (unless someone defined a command with that name). (<prior>
is the key named Page Up or similar on your keyboard.) What else didC-h k M-<up>
tell you? – Drew Dec 9 '15 at 14:43scroll-other-window-down
. You probably want to bind the commandorg-metaup
, but first look up where it is already bound by typeC-h w org-metaup
when you are visiting a file in org-mode. – Andrew Swann Dec 10 '15 at 15:35