]> git.eshelyaron.com Git - emacs.git/commitdiff
Use sh-mode for PKGBUILD files
authorUtkarsh Singh <utkarsh190601@gmail.com>
Tue, 23 Feb 2021 15:41:14 +0000 (16:41 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 24 Feb 2021 16:06:53 +0000 (17:06 +0100)
* lisp/files.el (auto-mode-alist): Use sh-mode for PKGBUILD files
(bug#46660).

Copyright-paperwork-exempt: yes

lisp/files.el

index 68e883513cb00063b609a4af77b71db295c979c6..68894ca2ce01052989434ed76552169f30be4ada 100644 (file)
@@ -2723,6 +2723,7 @@ since only a single case-insensitive search through the alist is made."
      ("\\.scm\\.[0-9]*\\'" . scheme-mode)
      ("\\.[ckz]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode)
      ("\\.bash\\'" . sh-mode)
+     ("/PKGBUILD\\'" . sh-mode)
      ("\\(/\\|\\`\\)\\.\\(bash_\\(profile\\|history\\|log\\(in\\|out\\)\\)\\|z?log\\(in\\|out\\)\\)\\'" . sh-mode)
      ("\\(/\\|\\`\\)\\.\\(shrc\\|zshrc\\|m?kshrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode)
      ("\\(/\\|\\`\\)\\.\\([kz]shenv\\|xinitrc\\|startxrc\\|xsession\\)\\'" . sh-mode)