2015-04-19 03:40:24 +00:00
|
|
|
(setq extra-langs-packages
|
2015-02-09 16:01:36 +00:00
|
|
|
'(
|
|
|
|
arduino-mode
|
|
|
|
julia-mode
|
2015-05-08 07:44:14 +00:00
|
|
|
matlab-mode
|
2015-03-25 22:04:29 +00:00
|
|
|
qml-mode
|
|
|
|
scad-mode
|
2015-06-10 18:20:15 +00:00
|
|
|
stan-mode
|
2016-01-20 03:53:12 +00:00
|
|
|
thrift
|
2015-02-09 16:01:36 +00:00
|
|
|
wolfram-mode
|
|
|
|
))
|
|
|
|
|
|
|
|
(defun extra-langs/init-arduino-mode ()
|
2017-05-19 02:02:45 +00:00
|
|
|
(use-package arduino-mode
|
|
|
|
:defer t))
|
2015-02-09 16:01:36 +00:00
|
|
|
|
|
|
|
(defun extra-langs/init-julia-mode ()
|
2017-05-19 02:02:45 +00:00
|
|
|
(use-package julia-mode
|
|
|
|
:defer t))
|
2015-02-09 16:01:36 +00:00
|
|
|
|
2015-05-08 07:44:14 +00:00
|
|
|
(defun extra-langs/init-matlab-mode ()
|
2016-04-11 13:12:53 +00:00
|
|
|
(use-package matlab-mode
|
|
|
|
:defer t
|
|
|
|
:init
|
|
|
|
;; Explicitly run prog-mode hooks since matlab-mode does not derive from
|
|
|
|
;; prog-mode major-mode
|
|
|
|
(add-hook 'matlab-mode-hook 'spacemacs/run-prog-mode-hooks)))
|
2015-05-08 07:44:14 +00:00
|
|
|
|
2017-04-07 18:03:04 +00:00
|
|
|
(defun extra-langs/init-qml-mode ()
|
2017-05-19 02:02:45 +00:00
|
|
|
(use-package qml-mode
|
|
|
|
:defer t
|
|
|
|
:mode "\\.qml\\'"))
|
2017-04-07 18:03:04 +00:00
|
|
|
|
|
|
|
(defun extra-langs/init-scad-mode ()
|
2017-05-19 02:02:45 +00:00
|
|
|
(use-package scad-mode
|
|
|
|
:defer t))
|
2017-04-07 18:03:04 +00:00
|
|
|
|
2015-06-10 18:20:15 +00:00
|
|
|
(defun extra-langs/init-stan-mode ()
|
2017-05-19 02:02:45 +00:00
|
|
|
(use-package stan-mode
|
|
|
|
:defer t))
|
|
|
|
|
2016-01-20 03:53:12 +00:00
|
|
|
(defun extra-langs/init-thrift ()
|
2017-05-19 02:02:45 +00:00
|
|
|
(use-package thrift
|
|
|
|
:defer t))
|
2016-01-20 03:53:12 +00:00
|
|
|
|
2017-03-06 13:46:01 +00:00
|
|
|
;; .m files are not associated because conflict with more common Objective-C and
|
|
|
|
;; MATLAB/Octave, manually invoke for .m files.
|
2015-02-09 16:01:36 +00:00
|
|
|
(defun extra-langs/init-wolfram-mode ()
|
|
|
|
(use-package wolfram-mode
|
|
|
|
:defer t
|
2017-02-16 15:47:20 +00:00
|
|
|
:interpreter "\\(Wolfram\\|Mathematica\\)Script\\( -script\\)?"
|
|
|
|
:mode "\\.wl\\'"))
|