From c5c7f0bc9917bbf9014a8bd8a16ab9afb26e3a1c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 7 Jul 2024 16:31:24 -0400 Subject: [PATCH] feat(format): add +format-inhibit alias I want both `apheleia-formatter` and `apheleia-inhibit` exposed for easy setting from directory/file-local variables (like .dir-locals.el), but I'd like to abstract away the implementation (Apheleia) a little, hence these aliases. This way, whether or not we're still using Apheleia in a year or three, `+format-with` and `+format-inhibit` should always work. --- modules/editor/format/config.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/editor/format/config.el b/modules/editor/format/config.el index e1ceb7db1..6bce65f92 100644 --- a/modules/editor/format/config.el +++ b/modules/editor/format/config.el @@ -24,6 +24,7 @@ variable." :safe 'booleanp) (defvaralias '+format-with 'apheleia-formatter) +(defvaralias '+format-inhibit 'apheleia-inhibit) ;;