This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/nim/packages.el
justbur 6eab954afe Use + instead of ! for layer categories
Helm seems to treat "!" specially in pattern matching, so having a ! in
the pattern string when traversing directories is problematic. This
change fixes #2737, because as far as I can tell "+" has no special
meaning in a helm pattern.

Of course, we can choose a different character, but I'm fond of "+" as
representing "more layers here".
2015-09-11 00:13:51 -04:00

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))))