From 364896803137163924668234673a8b776ef9849d Mon Sep 17 00:00:00 2001 From: larstvei Date: Mon, 12 Jun 2023 02:19:21 +0200 Subject: [PATCH] use-package EditorConfig --- init.org | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/init.org b/init.org index 6711498..515387f 100644 --- a/init.org +++ b/init.org @@ -207,8 +207,7 @@ (let* ((package--builtins nil) (packages - '(editorconfig ; EditorConfig Emacs Plugin - erlang ; Erlang major mode + '(erlang ; Erlang major mode expand-region ; Increase selected region by semantic units focus ; Dim color of text in surrounding sections go-mode ; Major mode for the Go programming language @@ -410,7 +409,6 @@ column-number-mode ; Show column number in mode line delete-selection-mode ; Replace selected text dirtrack-mode ; directory tracking in *shell* - editorconfig-mode ; Use editorconfig global-so-long-mode ; Mitigate performance for long lines recentf-mode ; Recently opened files show-paren-mode ; Highlight matching parentheses @@ -600,6 +598,21 @@ #+end_src +* EditorConfig + + Using [[https://editorconfig.org/][EditorConfig]] is a must when collaborating with others. It is also a way + of having multiple tools that want to format your buffer to agree (e.g. both + the language's Emacs mode and some external formatter/prettifier). + + #+begin_src emacs-lisp + + ;; EditorConfig Emacs Plugin + (use-package editorconfig + :config + (editorconfig-mode 1)) + + #+end_src + * Projectile #+begin_src emacs-lisp