Skip to content

Commit d52224b

Browse files
committed
Move all ephemeral state to "var" directory
1 parent 73bf9aa commit d52224b

File tree

6 files changed

+10
-16
lines changed

6 files changed

+10
-16
lines changed

.gitignore

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
*.elc
2-
*.pyc
3-
/tmp/
4-
/elpa/archives/
5-
ac-comphist.dat
2+
/var/
63
site.el
7-
projectile-bookmarks.eld
84
tramp
9-
/.python-environments
10-
/.lsp-session*
11-
/ido.last
12-
/recentf
13-
/session.*
145
/transient/
6+
/straight/modified
7+
/.python-environments/

TODO.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
get all temp files under var if possible
2-
- there's a lot of junk in there
3-
41
Try fuzzy search in prescient config
52

63
rg.el

custom.el

+4
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ static char *gnus-pointer[] = {
176176
'(lsp-gopls-server-args
177177
(quote
178178
("-rpc.trace" "-logfile=/home/menno/tmp/gopls-emacs.log")))
179+
'(lsp-session-file "/home/menno/.emacs.d/var/.lsp-session-v1")
179180
'(lsp-ui-doc-enable nil)
180181
'(lsp-ui-imenu-enable nil)
181182
'(lsp-ui-peek-peek-height 30)
@@ -216,11 +217,13 @@ static char *gnus-pointer[] = {
216217
'(pos-tip-foreground-color "#242728")
217218
'(powerline-color1 "#222232")
218219
'(powerline-color2 "#333343")
220+
'(projectile-cache-file "/home/menno/.emacs.d/var/projectile.cache")
219221
'(projectile-globally-ignored-directories
220222
(quote
221223
(".idea" ".ensime_cache" ".eunit" ".git" ".hg" ".fslckout" "_FOSSIL_" ".bzr" "_darcs" ".tox" ".svn" ".stack-work" "vendor" "node_modules")))
222224
'(projectile-tags-command "ctags -Re --exclude=node_modules -f \"%s\" %s ")
223225
'(recentf-max-saved-items 100)
226+
'(recentf-save-file "~/.emacs.d/var/recentf")
224227
'(ropemacs-enable-shortcuts nil)
225228
'(safe-local-variable-values (quote ((firestarter . ert-run-tests-interactively))))
226229
'(select-enable-primary t)
@@ -242,6 +245,7 @@ static char *gnus-pointer[] = {
242245
'(text-scale-mode-step 1.1)
243246
'(tool-bar-mode nil)
244247
'(tramp-ssh-controlmaster-options "" t)
248+
'(transient-history-file "~/.emacs.d/var/transient/history.el")
245249
'(uniquify-buffer-name-style (quote post-forward-angle-brackets) nil (uniquify))
246250
'(uniquify-min-dir-content 0)
247251
'(vc-annotate-background "#2B2B2B")

init.el

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
(add-to-list 'load-path "~/.emacs.d/lisp")
1010

1111
(require 'package-config)
12-
13-
(require 'temp-config) ;; Put temporary files in sane locations.
12+
(require 'temp-config)
1413
(require 'gui-config)
1514
(require 'elisp-utils)
1615
(require 'text-utils)

lisp/projectile-config.el

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(use-package projectile
22
:straight t
33
:config
4+
(setq projectile-known-projects-file (expand-file-name "~/.emacs.d/var/projectile-bookmarks.eld"))
45
(setq projectile-completion-system 'default) ; use selectrum
56
:bind (:map projectile-mode-map
67
("C-c p" . projectile-command-map)))

lisp/temp-config.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; Set up where temporary, backup and auto-save files go.
66

77
;;; Code:
8-
(setq temporary-file-directory "~/.emacs.d/tmp/")
8+
(setq temporary-file-directory "~/.emacs.d/var/")
99
(defvar auto-save-dir (concat temporary-file-directory "auto-save/"))
1010
(setq auto-save-list-file-prefix (concat auto-save-dir ".saves-"))
1111
(setq auto-save-file-name-transforms `((".*" ,auto-save-dir t)))

0 commit comments

Comments
 (0)