configure some libraries to use xdg directories to store state

master
John Turner 7 months ago
parent 13d49b4920
commit 105399f2a5
No known key found for this signature in database

@ -4,6 +4,7 @@
(require 'seq)
(require 'server)
(require 'edebug)
(require 'xdg)
(global-unset-key (kbd "<left>"))
(global-unset-key (kbd "<right>"))

@ -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
: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))

@ -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
:custom
(tramp-password-cache nil)
(tramp-persistency-file-name nil)
(tramp-persistency-file-name (file-name-concat (xdg-state-home) "emacs/tramp/persistency-file"))
:config
(add-to-list 'tramp-connection-properties
(list (regexp-quote (format "/sudo:root@%s:" system-name))
"session-timeout" (* 60 60)))
(add-to-list 'tramp-remote-path "/root/bin"))
"session-timeout" (* 60 60))))

@ -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…
Cancel
Save