fix(format): react to ns change

This commit is contained in:
Ellis Kenyo 2023-04-14 21:11:34 +01:00
parent 550767efe2
commit b0e579741e
No known key found for this signature in database
GPG key ID: 298BE5D997EBAA02
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ Advanced examples:
" "
(declare (indent defun)) (declare (indent defun))
(cl-check-type name symbol) (cl-check-type name symbol)
(after! apheleia (after! apheleia-core
(if (null args) (if (null args)
(progn (progn
(setq apheleia-formatters (setq apheleia-formatters

View file

@ -41,7 +41,7 @@ This is controlled by `+format-on-save-disabled-modes'."
(string-empty-p (string-trim (buffer-name))) (string-empty-p (string-trim (buffer-name)))
(not (null (memq major-mode +format-on-save-disabled-modes))))) (not (null (memq major-mode +format-on-save-disabled-modes)))))
(after! apheleia (after! apheleia-core
(when (modulep! +onsave) (when (modulep! +onsave)
(add-to-list 'apheleia-inhibit-functions #'+format-inhibit-maybe-h))) (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 ;;; Additional formatters
(after! apheleia (after! apheleia-core
;; TODO html-tidy ;; TODO html-tidy
(cl-defun apheleia--indent-lisp-buffer (cl-defun apheleia--indent-lisp-buffer
(&key buffer scratch callback &allow-other-keys) (&key buffer scratch callback &allow-other-keys)