3a9e8c1723
My first spacemacs layer, total elisp newb. Does what it says in the README, with one bug: I have auto-completion-enable-snippets-in-popup t in my .spacemacs In faust files, only yas-keys that have a similar word in an open buffer show up in the company menu. Example: with no open buffers ne doesn't show a company menu, if a file has the word nent in it, I get a menu with ne -> nentry (the snippet) and nent. having ne$AnyTwoCharacters in the file also works, but just ne or nen doesn't.
38 lines
953 B
EmacsLisp
38 lines
953 B
EmacsLisp
(setq extra-langs-packages
|
|
'(
|
|
arduino-mode
|
|
julia-mode
|
|
matlab-mode
|
|
qml-mode
|
|
scad-mode
|
|
stan-mode
|
|
thrift
|
|
wolfram-mode
|
|
))
|
|
|
|
(defun extra-langs/init-arduino-mode ()
|
|
(use-package arduino-mode :defer t))
|
|
|
|
(defun extra-langs/init-scad-mode ()
|
|
(use-package scad-mode :defer t))
|
|
|
|
(defun extra-langs/init-qml-mode ()
|
|
(use-package qml-mode :defer t :mode "\\.qml\\'"))
|
|
|
|
(defun extra-langs/init-julia-mode ()
|
|
(use-package julia-mode :defer t))
|
|
|
|
(defun extra-langs/init-matlab-mode ()
|
|
(use-package matlab-mode :defer t))
|
|
|
|
(defun extra-langs/init-stan-mode ()
|
|
(use-package stan-mode :defer t))
|
|
|
|
(defun extra-langs/init-thrift ()
|
|
(use-package thrift :defer t))
|
|
|
|
;; no associated extension because conflicts with more common Objective-C, manually invoke for .m files.
|
|
(defun extra-langs/init-wolfram-mode ()
|
|
(use-package wolfram-mode
|
|
:defer t
|
|
:interpreter "\\(Wolfram\\|Mathematica\\)Script\\( -script\\)?"))
|