Fix awk-mode
This commit is contained in:
@@ -1696,6 +1696,8 @@ With PROJECT, give diagnostics for all buffers in the current project."
|
|||||||
(apheleia-formatters-respect-fill-column t)
|
(apheleia-formatters-respect-fill-column t)
|
||||||
:init
|
:init
|
||||||
(add-to-list 'auto-mode-alist `(,(rx "/.clang-format" eos) . yaml-ts-mode))
|
(add-to-list 'auto-mode-alist `(,(rx "/.clang-format" eos) . yaml-ts-mode))
|
||||||
|
(defun my/apheleia-disable-in-current-buffer ()
|
||||||
|
(apheleia-mode -1))
|
||||||
:config
|
:config
|
||||||
(apheleia-global-mode 1)
|
(apheleia-global-mode 1)
|
||||||
(add-to-list 'apheleia-formatters
|
(add-to-list 'apheleia-formatters
|
||||||
@@ -2464,7 +2466,7 @@ line in the block and manually deal with indentation."
|
|||||||
(defun my/format-only-when-sly-running ()
|
(defun my/format-only-when-sly-running ()
|
||||||
"Make apheleia-mode format Lisp buffers only when sly is running."
|
"Make apheleia-mode format Lisp buffers only when sly is running."
|
||||||
(add-to-list (make-local-variable 'apheleia-skip-functions)
|
(add-to-list (make-local-variable 'apheleia-skip-functions)
|
||||||
#'my/-apheleia-sly-skip-function))
|
#'my/apheleia-sly-skip-function))
|
||||||
(with-eval-after-load 'lisp-mode
|
(with-eval-after-load 'lisp-mode
|
||||||
(add-hook 'lisp-mode-hook #'my/format-only-when-sly-running))
|
(add-hook 'lisp-mode-hook #'my/format-only-when-sly-running))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user