From bf86a17a3c6c8a52bf854df42006f277b741c520 Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Thu, 2 Apr 2026 08:04:51 +0300 Subject: [PATCH] Use dolist instead of multiple forms --- lisp/langs/icejam-lang-sh.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/langs/icejam-lang-sh.el b/lisp/langs/icejam-lang-sh.el index e9113b2..056e31e 100644 --- a/lisp/langs/icejam-lang-sh.el +++ b/lisp/langs/icejam-lang-sh.el @@ -4,10 +4,9 @@ (use-package fish-mode :ensure t :defer t) -(add-to-list 'auto-mode-alist '("\\.zsh\\'" . sh-mode)) -(add-to-list 'auto-mode-alist '("\\zshrc\\'" . sh-mode)) -(add-to-list 'auto-mode-alist '("\\.zshrc\\'" . sh-mode)) -(add-to-list 'auto-mode-alist '("\\.envrc\\'" . sh-mode)) +(dolist + (ending '("\\.zsh\\'" "\\.zshrc\\'" "\\.envrc\\'" "\\.zshrc\\'")) + (add-to-list 'auto-mode-alist (cons ending 'sh-mode))) (provide 'icejam-lang-sh) ;;; icejam-lang-sh.el ends here