I'd like to minimize emacs on Windows, when I press the Alt-Space, then n keys, just like with other Windows programs (because Alt-Space opens the program's menu that includes the 'Mi_n_imize' option, and 'n' then tells Windows to minimize that program/window)
I've rebound my left alt to be my Meta key.
So I want to set things up so that Meta-Space n will invoke
I tried this:
(global-set-key (kbd "M-SPC n") 'suspend-frame)
But I got the error message
Key sequence M-SPC n starts with non-prefix key M-SPC
Is there a clear explanation of what 'prefix' vs. 'non-prefix' keys are?
Is there a way to work around this, and to use Meta-Space in a key sequence?
(define-prefix-command 'keymap-meta-space) (global-set-key (kbd "M-SPC") 'keymap-meta-space ) (define-key keymap-meta-space (kbd "M-n") 'suspend-frame)
After evaluating all three sexp's I press M-SPC, then I press n, and then emacs waits for me to press something else (by displaying
M-SPC n- in the minibuffer).