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.
slis not working inorg-modeeither. Nevertheless even when I put justlforsclang-modeI getSPC m is undefined– Dionysis Apr 20 '16 at 18:00