In .spacemacs
I am trying to define a few custom, major mode mappings, that can be accesed using SPC m
. This is working fine for org-mode
:
(evil-leader/set-key-for-mode 'org-mode "l" 'org-insert-link)
but when I define it for a different mode it doesn't work:
(evil-leader/set-key-for-mode 'sclang-mode "sl" 'sclang-eval-line)
Using SPC m
just returns SPC m is undefined
UPDATE:
The mode is part of a package that I used following these instructions. In my .spacemacs file I have added these lines to make it work:
(add-to-list 'load-path "~/.emacs.d/sc/el")
(require 'sclang)
(setenv "PATH" (concat (getenv "PATH") ":/Applications/SuperCollider/SuperCollider.app/Contents/Resources"))
(setq exec-path (append exec-path '("/Applications/SuperCollider" "/Applications/SuperCollider/SuperCollider.app/Contents/Resources" )))
It also required to move a folder in the .emacs.d
folder (and I need to remove it temporarily before every spacemacs
update...) so yes, definitely not even close to an official layer.
sl
is not working inorg-mode
either. Nevertheless even when I put justl
forsclang-mode
I getSPC m is undefined