Replace format-all with apheleia
This commit is contained in:
parent
d237888aa4
commit
7f4888677e
1 changed files with 11 additions and 8 deletions
15
init.el
15
init.el
|
@ -195,7 +195,7 @@
|
||||||
:straight t
|
:straight t
|
||||||
:bind
|
:bind
|
||||||
(("C-;" . embark-act) ;; pick some comfortable binding
|
(("C-;" . embark-act) ;; pick some comfortable binding
|
||||||
;("M-;" . embark-dwim)
|
;;("M-;" . embark-dwim)
|
||||||
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
|
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
|
||||||
:init
|
:init
|
||||||
;; Optionally replace the key help with a completing-read interface
|
;; Optionally replace the key help with a completing-read interface
|
||||||
|
@ -391,9 +391,7 @@
|
||||||
:after (org)
|
:after (org)
|
||||||
:config
|
:config
|
||||||
(setq org-mime-export-options
|
(setq org-mime-export-options
|
||||||
'(:section-numbers nil
|
'(:section-numbers nil :with-author nil :with-toc nil))
|
||||||
:with-author nil
|
|
||||||
:with-toc nil))
|
|
||||||
(setq org-mime-export-ascii 'utf-8)
|
(setq org-mime-export-ascii 'utf-8)
|
||||||
(add-hook 'org-mime-html-hook
|
(add-hook 'org-mime-html-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
@ -652,9 +650,14 @@
|
||||||
:config
|
:config
|
||||||
(add-hook 'eglot-managed-mode-hook #'eldoc-box-hover-mode t))
|
(add-hook 'eglot-managed-mode-hook #'eldoc-box-hover-mode t))
|
||||||
|
|
||||||
(use-package format-all
|
(use-package apheleia
|
||||||
:straight t
|
:straight t
|
||||||
:bind ("C-c C-f" . format-all-buffer))
|
:config
|
||||||
|
(apheleia-global-mode +1)
|
||||||
|
(setf (alist-get 'python-ts-mode apheleia-mode-alist)
|
||||||
|
'(ruff))
|
||||||
|
(setf (alist-get 'python-mode apheleia-mode-alist)
|
||||||
|
'(ruff)))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;; Programming languages modes
|
;;; Programming languages modes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue