How to change the SPC m c
(org-capture
) key binding to open the ~/capture.org
file instead?
F-5
opens file when this is in .spacemacs
file:
(global-set-key (kbd "<f5>") (lambda() (interactive)(find-file "~/capture.org")))
My failed attempt to bind SPC m c
:
(global-set-key (kbd "SPC m c") (lambda() (interactive)(find-file "~/capture.org")))
got this error:
Key sequence `SPC m c` starts with non-prefix key `SPC`
I am using Emacs 25.2.1 with Evil Spacemacs and Ivy on Linux.
define-prefix-command
and, more generally, (elisp) Prefix Keys.