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/major-modes/packages.el

93 lines
2.6 KiB
EmacsLisp
Raw Normal View History

2017-06-19 08:25:14 +00:00
(setq major-modes-packages
'(
arduino-mode
(ebuild-mode :location (recipe :fetcher github :repo "emacsmirror/ebuild-mode"))
2016-07-12 17:52:18 +00:00
(hoon-mode :location (recipe :fetcher github :repo "urbit/hoon-mode.el"))
2016-01-17 17:13:04 +00:00
julia-mode
kivy-mode
2017-06-19 08:49:26 +00:00
(logcat :location (recipe :fetcher github :repo "dcolascione/logcat-mode"))
2017-06-19 08:25:14 +00:00
matlab-mode
2017-06-19 08:51:36 +00:00
pkgbuild-mode
2017-06-19 08:25:14 +00:00
qml-mode
scad-mode
stan-mode
thrift
vala-mode
2017-07-03 07:52:54 +00:00
(vala-snippets :requires yasnippet)
wolfram-mode
2017-06-19 08:25:14 +00:00
))
(defun major-modes/init-arduino-mode ())
(defun major-modes/init-ebuild-mode ()
(use-package ebuild-mode
:mode ("\\.\\(ebuild\\|eclass\\)" . ebuild-mode)
:init
(progn
(spacemacs/set-leader-keys-for-major-mode 'ebuild-mode
"n" 'ebuild-mode-insert-skeleton
"k" 'ebuild-mode-keyword
"e" 'ebuild-run-command
"a" 'ebuild-run-echangelog))))
2016-07-12 17:52:18 +00:00
(defun major-modes/init-hoon-mode ())
(defun major-modes/init-julia-mode ())
2017-06-19 08:49:26 +00:00
(defun major-modes/init-logcat ()
(use-package logcat
:commands (logcat logcat-mode)))
2016-01-17 17:13:04 +00:00
(defun major-modes/init-kivy-mode ())
2017-06-19 08:25:14 +00:00
(defun major-modes/init-matlab-mode ()
(use-package matlab-mode
:defer t
2017-06-19 08:25:14 +00:00
: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)))
2017-06-19 08:51:36 +00:00
(defun major-modes/init-pkgbuild-mode ()
(use-package pkgbuild-mode
:mode ("\\`PKGBUILD\\'" . pkgbuild-mode)
:defer t
2017-06-19 08:51:36 +00:00
:init
(progn
(spacemacs/set-leader-keys-for-major-mode 'pkgbuild-mode
"r" 'pkgbuild-increase-release-tag
"b" 'pkgbuild-makepkg
"a" 'pkgbuild-tar
"u" 'pkgbuild-browse-url
"m" 'pkgbuild-update-sums-line
"e" 'pkgbuild-etags))))
2017-06-19 08:25:14 +00:00
(defun major-modes/init-qml-mode ()
(use-package qml-mode
:defer t
2017-06-19 08:25:14 +00:00
:mode "\\.qml\\'"))
(defun major-modes/init-scad-mode ())
(defun major-modes/init-stan-mode ())
(defun major-modes/init-thrift ())
(defun major-modes/init-vala-mode ()
(use-package vala
:defer t
:init
;; Explicitly run prog-mode hooks since vala-mode does not derive from
;; prog-mode major-mode
(add-hook 'vala-mode-hook 'spacemacs/run-prog-mode-hooks)))
(defun major-modes/init-vala-snippets ())
2017-06-19 08:25:14 +00:00
;; .m files are not associated because conflict with more common Objective-C and
;; MATLAB/Octave, manually invoke for .m files.
(defun major-modes/init-wolfram-mode ()
(use-package wolfram-mode
:defer t
2017-06-19 08:25:14 +00:00
:interpreter "\\(Wolfram\\|Mathematica\\)Script\\( -script\\)?"
:mode "\\.wl\\'"))