From 47423e640f87f432895313b1e0b93110c7f138db Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Fri, 28 Mar 2025 12:35:05 +0100 Subject: Eshell Directory in `.cache` Eshell history should be kept in the XDG cache directory, as I don't want it to be included in the dotfiles configuration. --- config/emacs/sanemacs.el | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/config/emacs/sanemacs.el b/config/emacs/sanemacs.el index 43c0576..3f77fa7 100644 --- a/config/emacs/sanemacs.el +++ b/config/emacs/sanemacs.el @@ -22,22 +22,19 @@ tab-width 4) (load-theme 'modus-vivendi) -;; Write auto-saves, backups and bookmarks to `.cache` directory +;; Configure features to use `.cache` directory (setq auto-save-list-file-prefix "~/.cache/emacs/auto-save/" auto-save-file-name-transforms '((".*" "~/.cache/emacs/auto-save/" t)) backup-by-copying t backup-directory-alist '((".*" . "~/.cache/emacs/backup/")) bookmark-default-file "~/.cache/emacs/bookmarks" - create-lockfiles nil) - -;; Configure TRAMP + create-lockfiles nil + eshell-directory-name "~/.cache/emacs/eshell" + treesit-extra-load-path '("~/.cache/emacs/tree-sitter")) (with-eval-after-load 'tramp-cache (setq tramp-persistency-file-name "~/.cache/emacs/tramp")) -;; Configure Tree-Sitter -(setq treesit-extra-load-path '("~/.cache/emacs/tree-sitter")) - ;; Configure package management (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) -- cgit v1.2.3