Skip to content

Commit

Permalink
fix(aphelia): adapt to the new upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Apr 23, 2023
1 parent 954a549 commit 06f7776
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -240,19 +240,11 @@ the children of class at point."
(use-package apheleia
:straight t
:init
(+map! "cff" #'apheleia-format-buffer))

(use-package apheleia-formatters
(+map! "cff" #'apheleia-format-buffer)
:config
(add-to-list 'apheleia-formatters '(cmake-format . ("cmake-format")))
;; TEMP: Use the `tab-width' value for `shfmt' formatting. Delete this hack if
;; this PR github.com/radian-software/apheleia/pull/179 gets merged.
(+alist-set 'shfmt '("shfmt" "-i" (number-to-string tab-width)) apheleia-formatters)
(dolist (alist '((cmake-mode . cmake-format)
(cmake-ts-mode . cmake-format)
(lisp-data-mode . lisp-indent)
(sh-mode . shfmt)
(emacs-lisp-mode . lisp-indent)))
(dolist (alist '((lisp-data-mode . lisp-indent)
(emacs-lisp-mode . lisp-indent)
(sh-mode . shfmt)))
(add-to-list 'apheleia-mode-alist alist)))

(use-package editorconfig
Expand Down

0 comments on commit 06f7776

Please sign in to comment.