mirror of https://github.com/Flinner/dots.git
feat: add no-littering
This commit is contained in:
parent
16b557435e
commit
22d2a9d827
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue