Add module-nim.el

This commit is contained in:
Henrik Lissner 2015-12-06 22:56:34 -05:00
parent aafba7d5be
commit aefd0bdd01
2 changed files with 15 additions and 0 deletions

14
modules/module-nim.el Normal file
View file

@ -0,0 +1,14 @@
;;; module-nim.el
(use-package nim-mode
:mode "\\.nim$"
:init
(add-hook! nim-mode '(narf|enable-tab-width-2 flycheck-mode))
:config
(require 'flycheck-nim)
(require 'company-nim)
(define-company-backend! nim-mode (nim yasnippet))
(map! :map nim-mode-map "gd" 'nim-goto-sym))
(provide 'module-nim)
;;; module-nim.el ends here