Use dolist instead of multiple forms

This commit is contained in:
Maciej 2026-04-02 08:04:51 +03:00
parent 36dac8db83
commit bf86a17a3c
Signed by: maciej
GPG key ID: 28243AF437E32F99

View file

@ -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