summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-06-28 18:35:22 +0200
committerAlan Pearce2023-06-28 18:35:40 +0200
commit5f4b83d79170c1867d53cc27028691edf16bb918 (patch)
treedbf4db5eddb1224d2b79869884e68060616aac4f
parent2e09f7f56e2ac3970ac5143007d78c9d3453463a (diff)
downloadnixfiles-5f4b83d79170c1867d53cc27028691edf16bb918.tar.lz
nixfiles-5f4b83d79170c1867d53cc27028691edf16bb918.tar.zst
nixfiles-5f4b83d79170c1867d53cc27028691edf16bb918.zip
Emacs: install dtrt-indent, but don't auto-enable
Only need this when working on other people's code
-rw-r--r--user/emacs/init.el3
-rw-r--r--user/settings/emacs.nix1
2 files changed, 4 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 554dcf08..afcbbffd 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -712,6 +712,9 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 (use-package ws-butler
   :ghook ('prog-mode-hook))
 
+(use-package dtrt-indent
+  :commands (dtrt-indent-mode))
+
 (use-package rainbow-mode
   :ghook ('(css-mode-hook
             conf-xdefaults-mode-hook)
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index ea042814..08a9ceba 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -111,6 +111,7 @@ in
         dired-git-info
         docker-compose-mode
         dockerfile-mode
+        dtrt-indent
         envrc
         editorconfig
         eglot