Disable apheleia auto-format in awk buffers
This commit is contained in:
parent
fd942c275f
commit
9a6a9fcbf8
9
init.el
9
init.el
@ -1394,13 +1394,18 @@ With PROJECT, give diagnostics for all buffers in the current project."
|
|||||||
:bind ("C-c o" . apheleia-format-buffer)
|
:bind ("C-c o" . apheleia-format-buffer)
|
||||||
: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 ()
|
||||||
|
(setq-local apheleia-inhibit t))
|
||||||
:config
|
:config
|
||||||
(with-eval-after-load 'apheleia
|
(with-eval-after-load 'apheleia
|
||||||
(setf (alist-get 'java-mode apheleia-mode-alist) 'clang-format
|
(setf (alist-get 'java-mode apheleia-mode-alist) 'clang-format
|
||||||
(alist-get 'java-ts-mode apheleia-mode-alist) 'clang-format
|
(alist-get 'java-ts-mode apheleia-mode-alist) 'clang-format))
|
||||||
(alist-get 'awk-mode apheleia-mode-alist nil t) nil))
|
|
||||||
(apheleia-global-mode +1))
|
(apheleia-global-mode +1))
|
||||||
|
|
||||||
|
;; awk
|
||||||
|
(with-eval-after-load 'cc-mode
|
||||||
|
(add-hook 'awk-mode-hook #'my/apheleia-disable-in-current-buffer))
|
||||||
|
|
||||||
;; gud
|
;; gud
|
||||||
(use-package gud
|
(use-package gud
|
||||||
:demand t
|
:demand t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user