Install apheleia to auto-format all programming buffers

This commit is contained in:
Vedang Manerikar 2024-11-20 09:06:36 +05:30
parent 64ccd037b4
commit 00feecc147
2 changed files with 23 additions and 0 deletions

View file

@ -4663,6 +4663,21 @@ Prot is the developer of this package.
:hook ((lisp-data-mode lisp-mode clojure-mode clojure-ts-mode cider-repl-mode inferior-emacs-lisp-mode) . paredit-mode))
#+end_src
** The =unravel-langs.el= settings for ~apheleia~ (code formatting)
:PROPERTIES:
:CUSTOM_ID: h:07B0E6F4-050E-4A7D-B489-E919E4887FF5
:END:
#+begin_src emacs-lisp :tangle "unravel-modules/unravel-langs.el"
(use-package apheleia
:ensure t
:demand t
:config
(apheleia-global-mode +1)
(with-eval-after-load 'apheleia-formatters
(push '(zprint . ("zprint")) apheleia-formatters)))
#+end_src
** The =unravel-langs.el= section for Python
:PROPERTIES:
:CUSTOM_ID: h:EA5EA223-F97D-4EE9-8663-99822A037618

View file

@ -342,6 +342,14 @@ Perform the comparison with `string<'."
("M-?" . nil)) ; `xref-find-references` uses it.
:hook ((lisp-data-mode lisp-mode clojure-mode clojure-ts-mode cider-repl-mode inferior-emacs-lisp-mode) . paredit-mode))
(use-package apheleia
:ensure t
:demand t
:config
(apheleia-global-mode +1)
(with-eval-after-load 'apheleia-formatters
(push '(zprint . ("zprint")) apheleia-formatters)))
;;;; Configuration for Python Programming
(use-package python