From 7161c2aa26c12109ef5d8f246943c9918b40798f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 10 Oct 2025 10:46:48 -0700 Subject: oni-sh: Include ‘bash-ts-mode’ for everything needed for ‘sh-mode’ --- oni-sh.el | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/oni-sh.el b/oni-sh.el index 3d2623f..aac6d81 100644 --- a/oni-sh.el +++ b/oni-sh.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2025.0624.144537 +;; Version: 2025.1006.105522 ;; Package-Requires: (reformatter oni-flycheck oni-smartparens) ;; This program is free software; you can redistribute it and/or modify @@ -47,16 +47,19 @@ :lighter "" :group 'shfmt) -(add-hook 'sh-mode-hook 'display-fill-column-indicator-mode) -(add-hook 'sh-mode-hook 'electric-indent-local-mode) -(add-hook 'sh-mode-hook 'flycheck-mode) -(add-hook 'sh-mode-hook 'shfmt-on-save-mode) -(add-hook 'sh-mode-hook 'smartparens-mode) +(mapc (lambda (minor-mode) + (add-hook 'sh-mode-hook minor-mode) + (add-hook 'bash-ts-mode-hook minor-mode)) + '(display-fill-column-indicator-mode + electric-indent-local-mode + flycheck-mode + shfmt-on-save-mode + smartparens-mode)) ;;;###autoload (add-to-list 'auto-mode-alist '("PKGBUILD\\'" . sh-mode)) ;;;###autoload -(add-to-list 'auto-mode-alist `(,(rx "/.env" (optional (or ".dev" ".development" ".testing" ".production" ".example")) eos) . sh-mode)) +(add-to-list 'auto-mode-alist (cons (rx "/.env" (optional (or ".dev" ".development" ".testing" ".production" ".example")) eos) 'sh-mode)) (provide 'oni-sh) ;;; oni-sh.el ends here -- cgit v1.3-2-g0d8e