mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
editor/format: add +format|on-save buffer-locally
This commit is contained in:
@ -26,7 +26,7 @@ control which major modes to target."
|
||||
((not (memq major-mode +format-on-save-enabled-modes))))
|
||||
(not (require 'format-all nil t))
|
||||
(not (format-all-probe)))
|
||||
(add-hook 'before-save-hook #'+format|on-save)))
|
||||
(add-hook 'before-save-hook #'+format|on-save nil t)))
|
||||
|
||||
(when (featurep! +onsave)
|
||||
(add-hook 'after-change-major-mode-hook #'+format|enable-on-save-maybe))
|
||||
|
Reference in New Issue
Block a user