Move some user-specific data to private/ and clean up .gitignore

There may be more data to be moved to private/, but for now it's enough like
this – I think.
This commit is contained in:
Daniel - 2023-10-01 18:00:39 +02:00
parent 08ccbbbfab
commit 975c2869ea
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
2 changed files with 37 additions and 52 deletions

77
.gitignore vendored
View File

@ -1,12 +1,5 @@
*.elc
/.cider-history
/.mc-lists.el
/.org-id-locations
/TAGS
/auto-save-list
/eautosave/
/ebackup/
/el-get/
/elpa/*
!/elpa/diminish-[0-9]*
!/elpa/bind-key-[0-9]*
@ -15,49 +8,35 @@
!/elpa/page-break-lines-[0-9]*
!/elpa/exec-path-from-shell-[0-9]*
!/elpa/lv-[0-9]*
/emms/
/eshell/history
/eshell/lastdir
/image-dired/
/org-clock-save.el
/projectile-bookmarks.eld
/recentf
/savehist
/semanticdb/
/srecode-map.el
/tramp
/url/cookies
/org-clock-save.el~
/site-lisp/timeline-tools-autoloads.el
/.cache/
/.cask/
/.cider-history
/.lsp-session-v1
/.mc-lists.el
/.org-id-locations
/.python-environments/
/TAGS
/auto-save-list
/dired-history
/eautosave/
/ebackup/
/el-get/
/eln-cache/
/elpy/
/eww-bookmarks
/flycheck_init.el
/games/*
/gnus.registry.eioioi
/helm-adaptive-history
/url/
/mastodon.plstore
/games/bubbles-default-2-10-10-scores
/games/tetris-scores
/image-dired/
/mthesaur.txt.cache
/custom.el
/history
/server/server
/speed-type/*
/site-lisp/timeline-tools-autoloads.el
/.cask/
/eww-bookmarks
/games/bubbles-default-3-15-10-scores
/games/snake-scores
/projectile.cache
/recentf~
/request/curl-cookie-jar
/transient/history.el
/private
/elpy/
/.python-environments/
/transient/
/dired-history
/sandbox/.emacs.d
/flycheck_init.el
/projects
/.lsp-session-v1
/.cache/
/semanticdb/
/server/server
/session.*
/eln-cache/
/speed-type/*
/tramp
/transient/history.el

12
init.el
View File

@ -502,7 +502,7 @@
(use-package savehist
:commands (savehist-mode)
:init (setq savehist-file (expand-file-name "savehist" emacs-d)))
:init (setq savehist-file (expand-file-name "private/savehist" emacs-d)))
(use-package server
:commands (server-running-p server-start)
@ -640,7 +640,9 @@
projectile-ignored-project-function #'file-remote-p
projectile-create-missing-test-files t
projectile-known-projects-file (expand-file-name "private/projectile-bookmarks.eld"
emacs-d))
emacs-d)
projectile-cache-file (expand-file-name "private/projectile.cache"
emacs-d))
:diminish projectile-mode)
@ -1074,6 +1076,7 @@
(list "GOTO"))
"ATTN"))))
org-clock-persist t
org-clock-persist-file (expand-file-name "private/org-clock-save.el" emacs-d)
org-clock-persist-query-resume nil
org-clock-ask-before-exiting nil
org-time-stamp-rounding-minutes '(1 1))
@ -2313,7 +2316,8 @@ point to the beginning of buffer first."
(use-package recentf
:commands (recentf-mode recentf-save-list)
:init (setq recentf-max-saved-items 1000)
:init (setq recentf-max-saved-items 1000
recentf-save-file (expand-file-name "private/recentf" emacs-d))
:config (run-with-timer 0 3600 #'recentf-save-list))
(use-package company
@ -2666,6 +2670,8 @@ eventuelly be set to nil, however)."
eshell-hist-ignoredups t
eshell-save-history-on-exit t
eshell-history-size 5000
eshell-history-file-name (expand-file-name "private/eshell/history" emacs-d)
eshell-last-dir-ring-file-name (expand-file-name "private/eshell/lastdir" emacs-d)
eshell-destroy-buffer-when-process-dies t
eshell-prompt-function #'eshell/default-prompt-function
eshell-prompt-regexp "└─[$#] "