Skip to content

Commit ebeee6b

Browse files
committed
Add editorconfig package
This allows Emacs to change its values in response to a .editorconfig file in a project. .editorconfig files are like .dir-locals.el, but are portable to other text editors/IDEs. The editorconfig package translates the .editorconfig settings into Emacs settings that are applied on a buffer-local level.
1 parent d1d4371 commit ebeee6b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

config/personal-settings.el

+13
Original file line numberDiff line numberDiff line change
@@ -297,5 +297,18 @@ currently running on.")
297297
(keymap-global-set "C-c C-p" #'windmove-up)
298298
(keymap-global-set "C-c C-f" #'windmove-right)
299299

300+
301+
;;;
302+
;;; EditorConfig provides a way for projects to define coding styles for all
303+
;;; editors in a uniform way that is easily checked into version control
304+
;;; systems. Think of this like a cross-editor/IDE version of .dir-locals.el.
305+
;;;
306+
307+
(use-package editorconfig
308+
:ensure t
309+
:defer t
310+
:config
311+
(editorconfig-mode 1))
312+
300313
(provide 'personal-settings)
301314
;;; personal-settings.el ends here

0 commit comments

Comments
 (0)