2020-02-19 23:07:30 +00:00
|
|
|
;;; packages.el --- Major modes Layer packages File for Spacemacs
|
2018-11-19 21:07:53 +00:00
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2018-11-19 21:07:53 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2018-11-19 21:07:53 +00:00
|
|
|
|
2017-06-19 08:25:14 +00:00
|
|
|
(setq major-modes-packages
|
|
|
|
'(
|
|
|
|
arduino-mode
|
2017-03-22 11:00:05 +00:00
|
|
|
(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"))
|
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
|
2016-10-23 23:30:27 +00:00
|
|
|
vala-mode
|
2017-07-03 07:52:54 +00:00
|
|
|
(vala-snippets :requires yasnippet)
|
2018-03-10 19:58:54 +00:00
|
|
|
wolfram-mode
|
2017-06-19 08:25:14 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
(defun major-modes/init-arduino-mode ())
|
|
|
|
|
2017-03-22 11:00:05 +00:00
|
|
|
(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 ())
|
|
|
|
|
2017-06-19 08:49:26 +00:00
|
|
|
(defun major-modes/init-logcat ()
|
|
|
|
(use-package logcat
|
|
|
|
:commands (logcat logcat-mode)))
|
|
|
|
|
2017-06-19 08:25:14 +00:00
|
|
|
(defun major-modes/init-matlab-mode ()
|
|
|
|
(use-package matlab-mode
|
2018-03-04 04:37:53 +00:00
|
|
|
: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)
|
2018-03-04 04:37:53 +00:00
|
|
|
: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
|
2020-04-25 16:30:39 +00:00
|
|
|
"s" 'pkgbuild-update-srcinfo
|
2017-06-19 08:51:36 +00:00
|
|
|
"e" 'pkgbuild-etags))))
|
|
|
|
|
2017-06-19 08:25:14 +00:00
|
|
|
(defun major-modes/init-qml-mode ()
|
|
|
|
(use-package qml-mode
|
2018-03-04 04:37:53 +00:00
|
|
|
: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 ())
|
|
|
|
|
2016-10-23 23:30:27 +00:00
|
|
|
(defun major-modes/init-vala-mode ()
|
|
|
|
(use-package vala
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2016-10-23 23:30:27 +00:00
|
|
|
: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
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2017-06-19 08:25:14 +00:00
|
|
|
:interpreter "\\(Wolfram\\|Mathematica\\)Script\\( -script\\)?"
|
|
|
|
:mode "\\.wl\\'"))
|