diff --git a/init.el b/init.el index 9b21df3..98fb503 100644 --- a/init.el +++ b/init.el @@ -4,6 +4,7 @@ (require 'seq) (require 'server) (require 'edebug) +(require 'xdg) (global-unset-key (kbd "")) (global-unset-key (kbd "")) diff --git a/packages/image-dired.el b/packages/image-dired.el new file mode 100644 index 0000000..c81e7a3 --- /dev/null +++ b/packages/image-dired.el @@ -0,0 +1,3 @@ +(use-package image-dired + :custom + (image-dired-dir (file-name-concat (xdg-cache-home) "image-dired"))) diff --git a/packages/recentf.el b/packages/recentf.el new file mode 100644 index 0000000..d548149 --- /dev/null +++ b/packages/recentf.el @@ -0,0 +1,3 @@ +(use-package recentf + :custom + (recentf-save-file (file-name-concat (xdg-state-home) "emacs/recentf"))) diff --git a/packages/savehist.el b/packages/savehist.el index c9a5e45..71a032e 100644 --- a/packages/savehist.el +++ b/packages/savehist.el @@ -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)) diff --git a/packages/saveplace.el b/packages/saveplace.el new file mode 100644 index 0000000..cfe0a21 --- /dev/null +++ b/packages/saveplace.el @@ -0,0 +1,4 @@ +(use-package saveplace + :custom + (save-place-file (file-name-concat (xdg-state-home) "saveplace/places")) + (save-place-limit nil)) diff --git a/packages/tramp.el b/packages/tramp.el index 501f6a6..5af23df 100644 --- a/packages/tramp.el +++ b/packages/tramp.el @@ -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)))) diff --git a/packages/transient.el b/packages/transient.el new file mode 100644 index 0000000..7e6690a --- /dev/null +++ b/packages/transient.el @@ -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")))