mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
use-package EditorConfig
This commit is contained in:
parent
75e11d4d1e
commit
3648968031
19
init.org
19
init.org
@ -207,8 +207,7 @@
|
|||||||
|
|
||||||
(let* ((package--builtins nil)
|
(let* ((package--builtins nil)
|
||||||
(packages
|
(packages
|
||||||
'(editorconfig ; EditorConfig Emacs Plugin
|
'(erlang ; Erlang major mode
|
||||||
erlang ; Erlang major mode
|
|
||||||
expand-region ; Increase selected region by semantic units
|
expand-region ; Increase selected region by semantic units
|
||||||
focus ; Dim color of text in surrounding sections
|
focus ; Dim color of text in surrounding sections
|
||||||
go-mode ; Major mode for the Go programming language
|
go-mode ; Major mode for the Go programming language
|
||||||
@ -410,7 +409,6 @@
|
|||||||
column-number-mode ; Show column number in mode line
|
column-number-mode ; Show column number in mode line
|
||||||
delete-selection-mode ; Replace selected text
|
delete-selection-mode ; Replace selected text
|
||||||
dirtrack-mode ; directory tracking in *shell*
|
dirtrack-mode ; directory tracking in *shell*
|
||||||
editorconfig-mode ; Use editorconfig
|
|
||||||
global-so-long-mode ; Mitigate performance for long lines
|
global-so-long-mode ; Mitigate performance for long lines
|
||||||
recentf-mode ; Recently opened files
|
recentf-mode ; Recently opened files
|
||||||
show-paren-mode ; Highlight matching parentheses
|
show-paren-mode ; Highlight matching parentheses
|
||||||
@ -600,6 +598,21 @@
|
|||||||
|
|
||||||
#+end_src
|
#+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
|
* Projectile
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
Loading…
Reference in New Issue
Block a user