diff --git a/modules/editor/format/autoload/settings.el b/modules/editor/format/autoload/settings.el index 85c71d354..575f008d8 100644 --- a/modules/editor/format/autoload/settings.el +++ b/modules/editor/format/autoload/settings.el @@ -71,7 +71,7 @@ Advanced examples: " (declare (indent defun)) (cl-check-type name symbol) - (after! apheleia + (after! apheleia-core (if (null args) (progn (setq apheleia-formatters diff --git a/modules/editor/format/config.el b/modules/editor/format/config.el index 3883c16ab..5d4b0f5ab 100644 --- a/modules/editor/format/config.el +++ b/modules/editor/format/config.el @@ -41,7 +41,7 @@ This is controlled by `+format-on-save-disabled-modes'." (string-empty-p (string-trim (buffer-name))) (not (null (memq major-mode +format-on-save-disabled-modes))))) -(after! apheleia +(after! apheleia-core (when (modulep! +onsave) (add-to-list 'apheleia-inhibit-functions #'+format-inhibit-maybe-h))) @@ -70,7 +70,7 @@ This is controlled by `+format-on-save-disabled-modes'." ;; ;;; Additional formatters -(after! apheleia +(after! apheleia-core ;; TODO html-tidy (cl-defun apheleia--indent-lisp-buffer (&key buffer scratch callback &allow-other-keys)