From 9a4ceb5d88c954f4c5c7834c333f6c71c0b94d0a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 24 Jun 2025 15:38:15 -0700 Subject: oni-sh: Make .env files sh-mode files --- oni-sh.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ;; 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 -- cgit v1.3-2-g0d8e