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/extra-langs/packages.el

46 lines
1.2 KiB
EmacsLisp
Raw Normal View History

(setq extra-langs-packages
'(
arduino-mode
julia-mode
2015-05-08 07:44:14 +00:00
matlab-mode
qml-mode
scad-mode
stan-mode
2016-01-20 03:53:12 +00:00
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))
2015-05-08 07:44:14 +00:00
(defun extra-langs/init-matlab-mode ()
(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
(defun extra-langs/init-stan-mode ()
(use-package stan-mode :defer t))
2016-01-20 03:53:12 +00:00
(defun extra-langs/init-thrift ()
2016-01-21 15:04: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.
(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\\'"))