[Emacs] Replace format-all with apheleia
This commit is contained in:
parent
cde3f4e433
commit
b68db35f62
@ -1781,9 +1781,6 @@ bind-key and global-set-key forms.
|
|||||||
(setq zop-to-char-kill-keys '(?\C-k ?\C-w))
|
(setq zop-to-char-kill-keys '(?\C-k ?\C-w))
|
||||||
(setq zop-to-char-quit-at-point-keys '(?\r))))
|
(setq zop-to-char-quit-at-point-keys '(?\r))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
** projectile
|
** projectile
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package projectile
|
(use-package projectile
|
||||||
@ -1913,12 +1910,12 @@ Neotree is useless with frame mode for now, so I've disabled it.
|
|||||||
(progn
|
(progn
|
||||||
(flimenu-global-mode)))
|
(flimenu-global-mode)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** swiper
|
** ctrlf
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package swiper
|
(use-package ctrlf
|
||||||
:disabled t
|
:disabled t
|
||||||
:bind ("C-s" . swiper))
|
:config (ctrlf-mode +1))
|
||||||
#+END_SRC
|
#+end_src
|
||||||
* Completion
|
* Completion
|
||||||
** vertico
|
** vertico
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
@ -2193,8 +2190,19 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab
|
|||||||
** format-all
|
** format-all
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package format-all
|
(use-package format-all
|
||||||
|
:disabled t
|
||||||
:commands (format-all-buffer format-all-mode))
|
:commands (format-all-buffer format-all-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
** apheleia
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package apheleia
|
||||||
|
:init
|
||||||
|
(defvar imalison:apheleia-allowed nil)
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(setq-default apheleia-inhibit t)
|
||||||
|
(apheleia-global-mode +1)))
|
||||||
|
#+end_src
|
||||||
** cliphist
|
** cliphist
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package cliphist
|
(use-package cliphist
|
||||||
@ -2308,9 +2316,7 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab
|
|||||||
(add-hook 'hack-local-variables-hook
|
(add-hook 'hack-local-variables-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(when imalison:use-black
|
(when imalison:use-black
|
||||||
(setq format-all-formatters nil)
|
(setq imalison:apheleia-allowed t))
|
||||||
(add-to-list 'format-all-formatters '("Python" . (black)))
|
|
||||||
(format-all-mode))
|
|
||||||
(when imalison:use-lsp-python
|
(when imalison:use-lsp-python
|
||||||
(lsp-deferred))) nil t))
|
(lsp-deferred))) nil t))
|
||||||
:config
|
:config
|
||||||
@ -3028,11 +3034,9 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
|
|||||||
;; XXX: These should probably be moved to config, right?
|
;; XXX: These should probably be moved to config, right?
|
||||||
(setq org-startup-indented nil
|
(setq org-startup-indented nil
|
||||||
org-startup-folded t
|
org-startup-folded t
|
||||||
|
org-fold-catch-invisible-edits 'show
|
||||||
org-edit-src-content-indentation 0
|
org-edit-src-content-indentation 0
|
||||||
org-src-preserve-indentation t
|
org-src-preserve-indentation t)
|
||||||
org-directory "~/Dropbox/org"
|
|
||||||
org-mobile-inbox-for-pull "~/Dropbox/org/flagged.org"
|
|
||||||
org-mobile-directory "~/Dropbox/Apps/MobileOrg")
|
|
||||||
|
|
||||||
(setq org-goto-interface 'outline-path-completion
|
(setq org-goto-interface 'outline-path-completion
|
||||||
org-goto-max-level 10
|
org-goto-max-level 10
|
||||||
|
Loading…
Reference in New Issue
Block a user