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/contrib/lang/extra-langs/packages.el
syl20bnr fdd4e944ef Reload dotfile and layer anywhere with SPC f e R
Replace `SPC m c c` and `C-c C-c` in the dotfile

Resolve #1210
2015-04-18 23:40:24 -04:00

54 lines
1.3 KiB
EmacsLisp

(setq extra-langs-packages
'(
arduino-mode
d-mode
idris-mode
julia-mode
nim-mode
nix-mode
qml-mode
rust-mode
scad-mode
wolfram-mode
yaml-mode
))
(defun extra-langs/init-arduino-mode ()
(use-package arduino-mode :defer t))
(defun extra-langs/init-d-mode ()
(use-package d-mode :defer t))
(defun extra-langs/init-idris-mode ()
(use-package idris-mode :defer t))
(defun extra-langs/init-scad-mode ()
(use-package scad-mode :defer t))
(defun extra-langs/init-nix-mode ()
(use-package nix-mode :defer t))
(defun extra-langs/init-nim-mode ()
(use-package nim-mode :defer t))
(defun extra-langs/init-qml-mode ()
(use-package qml-mode :defer t))
(defun extra-langs/init-julia-mode ()
(use-package julia-mode :defer t))
(defun extra-langs/init-yaml-mode ()
(use-package yaml-mode :defer t))
(defun extra-langs/init-rust-mode ()
(use-package rust-mode
:defer t
:config
(when (fboundp 'sp-local-pair) ; Don't pair lifetime specifiers
(sp-local-pair 'rust-mode "'" nil :actions nil))))
;; 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\\)?"))