feat: add no-littering

This commit is contained in:
Flinner Yuu 2023-03-31 16:16:23 +03:00
parent 16b557435e
commit 22d2a9d827
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
1 changed files with 8 additions and 1 deletions

View File

@ -86,6 +86,9 @@ remove warning by use-package
#+end_src
Emacs Backups trashing local dir!
#+begin_src emacs-lisp
(use-package no-littering
(setq auto-save-file-name-transforms
`((".*" ,(no-littering-expand-var-file-name "auto-save/") t))))
(setq backup-directory-alist `(("." . "~/.local/share/emacs-backups")))
(setq make-backup-files t ; backup of a file the first time it is saved.
backup-by-copying t ; don't clobber symlinks
@ -1544,7 +1547,11 @@ Counsel Projectile
#+begin_src emacs-lisp
(use-package recentf
:defer 10
:config (recentf-mode 1))
:config (recentf-mode 1)
; https://github.com/emacscollective/no-littering#suggested-settings
(with-eval-after-load 'no-littering
(add-to-list 'recentf-exclude no-littering-var-directory)
(add-to-list 'recentf-exclude no-littering-etc-directory)))
#+end_src
*** lsp performance