From cd8ea48284a579431f96eeeb755e8a1c43bc3206 Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Sun, 9 Sep 2018 20:10:15 +0300 Subject: [PATCH] Make zsh files be handled by sh-mode --- 20sh.el | 3 +++ init.el | 1 + 2 files changed, 4 insertions(+) create mode 100644 20sh.el diff --git a/20sh.el b/20sh.el new file mode 100644 index 0000000..74e497c --- /dev/null +++ b/20sh.el @@ -0,0 +1,3 @@ +(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)) diff --git a/init.el b/init.el index 9ca0609..2c9a182 100644 --- a/init.el +++ b/init.el @@ -94,6 +94,7 @@ (load "~/.emacs.d/20ruby.el") (load "~/.emacs.d/20web.el") (load "~/.emacs.d/20elixir.el") +(load "~/.emacs.d/20sh.el") (custom-set-variables ;; custom-set-variables was added by Custom.