about summary refs log tree commit diff stats
path: root/.emacs.d
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-11-26 16:23:43 +0000
committerDavid Morgan <djm_uk@protonmail.com>2022-11-26 16:23:43 +0000
commite403d242557b507f30764735361c12f3f5438f8f (patch)
treed01075fcc706b9817ae3b79ce799ad08b8b5e15f /.emacs.d
parent86278e4680deed94f9747e279b3b995cff980d8d (diff)
downloaddotfiles-e403d242557b507f30764735361c12f3f5438f8f.tar.gz
Add editorconfig
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-editor.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el
index 37ecaf6..9365a01 100644
--- a/.emacs.d/lisp/init-editor.el
+++ b/.emacs.d/lisp/init-editor.el
@@ -205,5 +205,10 @@
   ("C-c C-y s" . aya-persist-snippet)
   ("C-c C-y o" . aya-open-line))
 
+(use-package editorconfig
+  :custom (editorconfig-trim-whitespaces-mode 'ws-butler-mode)
+  :hook
+  (emacs-startup . editorconfig-mode))
+
 (provide 'init-editor)
 ;;; init-editor.el ends here