about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-05-12T16·33+0200
committerclbot <clbot@tvl.fyi>2022-05-12T16·36+0000
commit1f3804b9cd6e60b35b44a9d947b0685a718482f8 (patch)
tree0963d81ae5b52dabb851f4f8da0c776c0bebb2fe
parent8d0247fe631b20ba187a17353ef9f0d0bab71807 (diff)
feat(sterni/emacs): enable editorconfig-mode r/4064
Change-Id: I5d0a5302321b768c7d23530d559115e3d8019223
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5581
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
-rw-r--r--users/sterni/emacs/default.nix1
-rw-r--r--users/sterni/emacs/init.el3
2 files changed, 4 insertions, 0 deletions
diff --git a/users/sterni/emacs/default.nix b/users/sterni/emacs/default.nix
index 226c8f9b22c6..e1bfbebb71c4 100644
--- a/users/sterni/emacs/default.nix
+++ b/users/sterni/emacs/default.nix
@@ -12,6 +12,7 @@ let
     epkgs.melpaPackages.cmake-mode
     epkgs.melpaPackages.direnv
     epkgs.melpaPackages.dockerfile-mode
+    epkgs.melpaPackages.editorconfig
     epkgs.melpaPackages.elfeed
     epkgs.melpaPackages.evil
     epkgs.melpaPackages.evil-collection
diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el
index ad414c09368c..4073bf63e5d8 100644
--- a/users/sterni/emacs/init.el
+++ b/users/sterni/emacs/init.el
@@ -230,6 +230,9 @@
 (use-package direnv
   :config (direnv-mode))
 
+(use-package editorconfig
+  :config (editorconfig-mode 1))
+
 (use-package haskell-mode)
 (use-package lsp-mode
   :hook ((haskell-mode . lsp-deferred))