summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.el
diff options
context:
space:
mode:
authorAlan Pearce2015-05-22 16:49:37 +0200
committerAlan Pearce2015-05-22 16:49:37 +0200
commit72955df98c117aa5d86dbd44ce196d213e56810f (patch)
tree324016729a481cf2c4e3d196b8cc4f952938224d /tag-emacs/emacs.d/init.el
parente6d7513cc93c24cdcb839384bba3e9714c1e8601 (diff)
downloadnixfiles-72955df98c117aa5d86dbd44ce196d213e56810f.tar.lz
nixfiles-72955df98c117aa5d86dbd44ce196d213e56810f.tar.zst
nixfiles-72955df98c117aa5d86dbd44ce196d213e56810f.zip
Emacs: Open .envrc files with sh-mode
Diffstat (limited to 'tag-emacs/emacs.d/init.el')
-rw-r--r--tag-emacs/emacs.d/init.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 92525d83..694e9842 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -768,6 +768,8 @@ mouse-1: Display Line and Column Mode Menu"))))))
 (add-to-list 'auto-mode-alist '("\\.target\\'" . conf-mode))
 (add-to-list 'auto-mode-alist '("\\.socket\\'" . conf-mode))
 
+(add-to-list 'auto-mode-alist '("\\.envrc\\'" . sh-mode))
+
 (req-package xrdb-mode
   :mode (("\\.Xdefaults\\'" . xrdb-mode)
          ("\\.Xresources\\'" . xrdb-mode)))