Add PKGBUILD and .install to sh-mode auto modes
This commit is contained in:
parent
b4f4dbc9be
commit
f41af450ab
1 changed files with 11 additions and 1 deletions
|
@ -1554,6 +1554,17 @@
|
||||||
(add-hook 'emacs-startup-hook 'global-diff-hl-mode)
|
(add-hook 'emacs-startup-hook 'global-diff-hl-mode)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
* Add PKGBUILD to the auto-mode-alist
|
||||||
|
|
||||||
|
~PKGBUILD~ and their accompanying ~.install~ files are basically shell
|
||||||
|
scripts with a certain predefined set of functions and options. So
|
||||||
|
start =sh-mode= whenever a ~PKGBUILD~ is loaded.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-to-list 'auto-mode-alist '("/PKGBUILD$" . sh-mode))
|
||||||
|
(add-to-list 'auto-mode-alist '(".install$" . sh-mode))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* Enable desktop-registry
|
* Enable desktop-registry
|
||||||
|
|
||||||
The =desktop-regsitry= package is one I wrote to ease switching
|
The =desktop-regsitry= package is one I wrote to ease switching
|
||||||
|
@ -1673,7 +1684,6 @@
|
||||||
(add-to-list 'auto-mode-alist '("\\.php[345]?$" . php-mode))
|
(add-to-list 'auto-mode-alist '("\\.php[345]?$" . php-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.po\\'\\|\\.po\\." . po-mode))
|
(add-to-list 'auto-mode-alist '("\\.po\\'\\|\\.po\\." . po-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.tpl$" . html-mode))
|
(add-to-list 'auto-mode-alist '("\\.tpl$" . html-mode))
|
||||||
(add-to-list 'auto-mode-alist '("^PKGBUILD$" . shell-script-mode))
|
|
||||||
(add-to-list 'auto-mode-alist '("^\\.Xmodmap$" . xmodmap-mode))
|
(add-to-list 'auto-mode-alist '("^\\.Xmodmap$" . xmodmap-mode))
|
||||||
|
|
||||||
(add-to-list 'debug-ignored-errors "^Can't shift all lines enough")
|
(add-to-list 'debug-ignored-errors "^Can't shift all lines enough")
|
||||||
|
|
Loading…
Reference in a new issue