(require 'seq)
(require 'server)
(require 'edebug)
+(require 'xdg)
(global-unset-key (kbd "<left>"))
(global-unset-key (kbd "<right>"))
--- /dev/null
+(use-package image-dired
+ :custom
+ (image-dired-dir (file-name-concat (xdg-cache-home) "image-dired")))
--- /dev/null
+(use-package recentf
+ :custom
+ (recentf-save-file (file-name-concat (xdg-state-home) "emacs/recentf")))
(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))
--- /dev/null
+(use-package saveplace
+ :custom
+ (save-place-file (file-name-concat (xdg-state-home) "saveplace/places"))
+ (save-place-limit nil))
(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))))
--- /dev/null
+(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")))