major-modes: add pkgbuild

This commit is contained in:
Sven Fischer 2017-06-19 10:51:36 +02:00 committed by Eivind Fonn
parent 3254849eb1
commit 25366dfe36
3 changed files with 33 additions and 0 deletions

View File

@ -2,11 +2,14 @@
* Table of Contents :TOC_4_gh:noexport:
- [[#description][Description]]
- [[#key-bindings][Key bindings]]
- [[#arch-linux-pkgbuilds][Arch Linux PKGBUILDs]]
* Description
This layer adds a number of packages for less common languages and major modes.
These include:
- Arch Linux PKGBUILDs
- Arduino
- Android Logcat (not associated with any file types by default)
- Julia
@ -16,3 +19,16 @@ These include:
- Stan
- Thrift
- Wolfram Language / Mathematica
* Key bindings
** Arch Linux PKGBUILDs
| Key Binding | Description |
|-------------+----------------------------|
| ~SPC m b~ | Run makepkg |
| ~SPC m r~ | Increase the pkgrel number |
| ~SPC m u~ | Browse URL |
| ~SPC m m~ | Update package sums |
| ~SPC m e~ | Build ETAGS file |
| ~SPC m a~ | Make a source tarball |

View File

@ -4,6 +4,7 @@
julia-mode
(logcat :location (recipe :fetcher github :repo "dcolascione/logcat-mode"))
matlab-mode
pkgbuild-mode
qml-mode
scad-mode
stan-mode
@ -27,6 +28,20 @@
;; prog-mode major-mode
(add-hook 'matlab-mode-hook 'spacemacs/run-prog-mode-hooks)))
(defun major-modes/init-pkgbuild-mode ()
(use-package pkgbuild-mode
:mode ("\\`PKGBUILD\\'" . pkgbuild-mode)
:defer t
: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))))
(defun major-modes/init-qml-mode ()
(use-package qml-mode
:defer t

View File

@ -84,6 +84,8 @@
(configuration-layer/lazy-install 'php :extensions '("\\(\\.amk\\'\\|/Amkfile\\'\\|\\.phtml\\'\\|\\.php[s345t]?\\'\\|[^/]\\.\\(module\\|test\\|install\\|profile\\|tpl\\.php\\|theme\\|inc\\)\\'\\|\\.php\\'\\)" php-mode))
(configuration-layer/lazy-install 'makepkg :extensions '("\\`PKGBUILD\\'" pkgbuild-mode))
(configuration-layer/lazy-install 'purescript :extensions '("\\(\\.purs\\'\\)" purescript-mode))
(configuration-layer/lazy-install 'python :extensions '("\\(\\.pyx\\'\\|\\.pxd\\'\\|\\.pxi\\'\\)" cython-mode))