From a30f3e4d48c6de7558cd6019dc7b7701e5d7e024 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 19 Nov 2019 22:02:50 -0800 Subject: Use ‘sh-mode’ for PKGBUILD files --- oni-sh.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'oni-sh.el') diff --git a/oni-sh.el b/oni-sh.el index 7142e95..2a45411 100644 --- a/oni-sh.el +++ b/oni-sh.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2019.1117.103253 +;; Version: 2019.1119.220233 ;; Package-Requires: (reformatter oni-flycheck oni-fci) ;; This program is free software; you can redistribute it and/or modify @@ -49,6 +49,8 @@ (add-hook 'sh-mode-hook 'flycheck-mode) (add-hook 'sh-mode-hook 'shfmt-on-save-mode) +(add-to-list 'auto-mode-alist '("PKGBUILD\\'" . sh-mode)) + ;;;###autoload(with-eval-after-load 'sh-script (require 'oni-sh)) (provide 'oni-sh) -- cgit v1.2.3-54-g00ecf