aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2025-06-24 15:38:15 -0700
committerGravatar Tom Willemse2025-06-24 15:38:15 -0700
commit9a4ceb5d88c954f4c5c7834c333f6c71c0b94d0a (patch)
tree4eb8965561b743333df4d908db004ad9318a59a0
parent2a2981ee9ee5273d92164b955c7bc5caf14249d9 (diff)
downloademacs-config-9a4ceb5d88c954f4c5c7834c333f6c71c0b94d0a.tar.gz
emacs-config-9a4ceb5d88c954f4c5c7834c333f6c71c0b94d0a.zip
oni-sh: Make .env files sh-mode files
-rw-r--r--oni-sh.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/oni-sh.el b/oni-sh.el
index be2b2a3..3d2623f 100644
--- a/oni-sh.el
+++ b/oni-sh.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2021.0715.215613
+;; Version: 2025.0624.144537
;; Package-Requires: (reformatter oni-flycheck oni-smartparens)
;; This program is free software; you can redistribute it and/or modify
@@ -55,6 +55,8 @@
;;;###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))
(provide 'oni-sh)
;;; oni-sh.el ends here