From 04a90b906c5e5a04cb60647e9263db675ec1d44e Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 7 Jan 2022 17:30:27 -0600 Subject: Add apheleia --- init.el | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index b046ffa..19513ea 100644 --- a/init.el +++ b/init.el @@ -567,6 +567,16 @@ [remap isearch-query-replace] #'anzu-isearch-query-replace [remap isearch-query-replace-regexp] #'anzu-isearch-query-replace-regexp)) +(setup (:straight-when (apheleia + :host github :repo "raxod502/apheleia") + (executable-find "diff")) + (:require apheleia + +apheleia) + (setf (alist-get 'indent-region apheleia-formatters) #'+apheleia-indent-region + (alist-get 'emacs-lisp-mode apheleia-mode-alist) 'indent-region + (alist-get 'lisp-interaction-mode apheleia-mode-alist) 'indent-region) + (apheleia-global-mode +1)) + (setup (:straight avy) (:require avy +avy) (:+key "M-j" #'avy-goto-char-timer) -- cgit 1.4.1-21-gabe81