6b33031dc5
- Rename contrib directory to layers - Add new variable dotspacemacs-distribution - Move spacemacs layer to layers/!distribution - New layer spacemacs-core in layers/!distribution - User can now set dotspacemacs-distribution to spacemacs or spacemacs-core (default spacemacs) spacemacs-core is very lightweight layer sufficient to build upon spacemacs.
26 lines
650 B
EmacsLisp
26 lines
650 B
EmacsLisp
(setq nim-packages
|
|
'(company
|
|
flycheck
|
|
nim-mode))
|
|
|
|
(defun nim/init-nim-mode ()
|
|
(use-package nim-mode
|
|
:defer t
|
|
:config
|
|
(progn
|
|
(defun spacemacs/nim-compile-run ()
|
|
(interactive)
|
|
(shell-command "nim compile --run main.nim"))
|
|
|
|
(evil-leader/set-key-for-mode 'nim-mode
|
|
"mcr" 'spacemacs/nim-compile-run))))
|
|
|
|
(when (configuration-layer/layer-usedp 'auto-completion)
|
|
(defun nim/post-init-company ()
|
|
(spacemacs|add-company-hook nim-mode))
|
|
|
|
(defun nim/init-company-nim ()
|
|
(use-package company-nim
|
|
:defer t
|
|
:init
|
|
(push 'company-nim company-backends-nim-mode))))
|