emacs: fix eldoc messages being cleared by aphelia when enabled
Alan Pearce alan@alanpearce.eu
Fri, 26 Apr 2024 11:23:04 +0200
1 files changed, 5 insertions(+), 9 deletions(-)
jump to
M user/emacs/init.el → user/emacs/init.el
@@ -1104,24 +1104,20 @@ ;;;; Reformat on save (use-package format-all :defer 10 - :ghook ('(clojure-mode-hook - dockerfile-ts-mode-hook - emacs-lisp-mode-hook - json-ts-mode-hook - markdown-mode-hook - sql-mode-hook - toml-mode-hook)) + :ghook ('prog-mode-hook) :gfhook #'format-all-ensure-formatter :init (progn (advice-add 'format-all-ensure-formatter :around #'quiet) (defun turn-off-format-all-mode () - (format-all-mode -1))) + (when format-all-mode + (format-all-mode -1)))) :config (progn - (setq format-all-show-errors 'never))) + (setq format-all-show-errors 'errors))) (use-package apheleia :defer 10 + :ghook 'prog-mode-hook :config (progn (setf (alist-get 'shfmt apheleia-formatters) '("shfmt"))