Skip to content

Commit

Permalink
tweak(editorconfig): trigger on the first file, exclude compressed files
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Dec 30, 2023
1 parent 9cc51e9 commit c4a703c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,14 @@

(use-package editorconfig
:straight t
:hook (prog-mode . editorconfig-mode)
:hook (minemacs-first-file . editorconfig-mode)
:init
(+map!
"fc" '(editorconfig-find-current-editorconfig :wk "Find current EditorConfig")
"cfe" #'editorconfig-format-buffer))
"cfe" #'editorconfig-format-buffer)
:config
;; Exclude compressed files
(push "\\.\\(zip\\|epub\\|\\(doc\\|xls\\|ppt\\)x\\)\\'" editorconfig-exclude-regexps))

(use-package clang-format
:straight t
Expand Down

0 comments on commit c4a703c

Please sign in to comment.