configure some libraries to use xdg directories to store state
parent
13d49b4920
commit
105399f2a5
@ -0,0 +1,3 @@
|
|||||||
|
(use-package image-dired
|
||||||
|
:custom
|
||||||
|
(image-dired-dir (file-name-concat (xdg-cache-home) "image-dired")))
|
@ -0,0 +1,3 @@
|
|||||||
|
(use-package recentf
|
||||||
|
:custom
|
||||||
|
(recentf-save-file (file-name-concat (xdg-state-home) "emacs/recentf")))
|
@ -1,4 +1,4 @@
|
|||||||
(use-package savehist
|
(use-package savehist
|
||||||
:custom
|
:custom
|
||||||
(savehist-file (file-name-concat user-emacs-directory "savehist"))
|
(savehist-file (file-name-concat (xdg-state-home) "emacs/savehist"))
|
||||||
(savehist-save-minibuffer-history t))
|
(savehist-save-minibuffer-history t))
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
(use-package saveplace
|
||||||
|
:custom
|
||||||
|
(save-place-file (file-name-concat (xdg-state-home) "saveplace/places"))
|
||||||
|
(save-place-limit nil))
|
@ -1,9 +1,8 @@
|
|||||||
(use-package tramp
|
(use-package tramp
|
||||||
:custom
|
:custom
|
||||||
(tramp-password-cache nil)
|
(tramp-password-cache nil)
|
||||||
(tramp-persistency-file-name nil)
|
(tramp-persistency-file-name (file-name-concat (xdg-state-home) "emacs/tramp/persistency-file"))
|
||||||
:config
|
:config
|
||||||
(add-to-list 'tramp-connection-properties
|
(add-to-list 'tramp-connection-properties
|
||||||
(list (regexp-quote (format "/sudo:root@%s:" system-name))
|
(list (regexp-quote (format "/sudo:root@%s:" system-name))
|
||||||
"session-timeout" (* 60 60)))
|
"session-timeout" (* 60 60))))
|
||||||
(add-to-list 'tramp-remote-path "/root/bin"))
|
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
(use-package transient
|
||||||
|
:custom
|
||||||
|
(transient-levels-file (file-name-concat (xdg-state-home) "emacs/transient/levels.el"))
|
||||||
|
(transient-values-file (file-name-concat (xdg-state-home) "emacs/transient/values.el"))
|
||||||
|
(transient-history-file (file-name-concat (xdg-state-home) "emacs/transient/history.el")))
|
Loading…
Reference in New Issue