Rearrange .local file structure (voids previous cache structure)
This commit is contained in:
parent
e25d945474
commit
8f970eb1d8
4 changed files with 43 additions and 25 deletions
53
core/core.el
53
core/core.el
|
@ -38,22 +38,26 @@ line or use --debug-init to enable this.")
|
||||||
;; conflict otherwise.
|
;; conflict otherwise.
|
||||||
|
|
||||||
(defvar doom-local-dir (concat doom-emacs-dir ".local/")
|
(defvar doom-local-dir (concat doom-emacs-dir ".local/")
|
||||||
"Root directory for local Emacs files.")
|
"Root directory for local Emacs files. Use this as permanent storage for files
|
||||||
|
that are safe to share across systems (if this config is symlinked across
|
||||||
(defvar doom-packages-dir (concat doom-local-dir "packages/")
|
several computers).")
|
||||||
"Where package.el and quelpa plugins (and their caches) are kept.")
|
|
||||||
|
|
||||||
(defvar doom-etc-dir
|
(defvar doom-etc-dir
|
||||||
(concat doom-local-dir "etc/" (system-name) "/")
|
(concat doom-local-dir "@" (system-name) "/etc/")
|
||||||
"Hostname-based directory for non-volatile temporary files. These are not
|
"Host-namespaced directory for non-volatile storage. These are not deleted or
|
||||||
deleted or tampored with by DOOM functions. It should not be used for transient
|
tampored with by DOOM functions. Use this for dependencies like servers or
|
||||||
or unstable files.")
|
config files that are stable (i.e. it should be unlikely that you need to delete
|
||||||
|
them if something goes wrong).")
|
||||||
|
|
||||||
(defvar doom-cache-dir
|
(defvar doom-cache-dir
|
||||||
(concat doom-local-dir "cache/" (system-name) "/")
|
(concat doom-local-dir "@" (system-name) "/cache/")
|
||||||
"Hostname-based directory for volatile temporary files. They are deleted when
|
"Host-namespaced directory for volatile storage. Deleted when
|
||||||
`doom/clean-cache' is called. For more stable local storage, use
|
`doom/clean-cache' is called. Use this for transient files that are generated on
|
||||||
`doom-local-dir'.")
|
the fly like caches and temporary files. Anything that may need to be cleared if
|
||||||
|
there are problems.")
|
||||||
|
|
||||||
|
(defvar doom-packages-dir (concat doom-local-dir "packages/")
|
||||||
|
"Where package.el and quelpa plugins (and their caches) are stored.")
|
||||||
|
|
||||||
(defvar doom-autoload-file
|
(defvar doom-autoload-file
|
||||||
(concat doom-local-dir "autoloads.el")
|
(concat doom-local-dir "autoloads.el")
|
||||||
|
@ -74,7 +78,6 @@ or unstable files.")
|
||||||
(setq locale-coding-system 'utf-8) ; please
|
(setq locale-coding-system 'utf-8) ; please
|
||||||
(setq-default buffer-file-coding-system 'utf-8) ; with sugar on top
|
(setq-default buffer-file-coding-system 'utf-8) ; with sugar on top
|
||||||
|
|
||||||
;; Configuration
|
|
||||||
(setq-default
|
(setq-default
|
||||||
ad-redefinition-action 'accept ; silence advised function warnings
|
ad-redefinition-action 'accept ; silence advised function warnings
|
||||||
apropos-do-all t ; make `apropos' more useful
|
apropos-do-all t ; make `apropos' more useful
|
||||||
|
@ -82,26 +85,30 @@ or unstable files.")
|
||||||
compilation-ask-about-save nil ; save all buffers on `compile'
|
compilation-ask-about-save nil ; save all buffers on `compile'
|
||||||
compilation-scroll-output t
|
compilation-scroll-output t
|
||||||
confirm-nonexistent-file-or-buffer t
|
confirm-nonexistent-file-or-buffer t
|
||||||
custom-file (concat doom-etc-dir "custom.el")
|
|
||||||
enable-recursive-minibuffers nil
|
enable-recursive-minibuffers nil
|
||||||
debug-on-error (and (not noninteractive) doom-debug-mode)
|
debug-on-error (and (not noninteractive) doom-debug-mode)
|
||||||
idle-update-delay 2 ; update ui less often
|
idle-update-delay 2 ; update ui less often
|
||||||
url-configuration-directory (concat doom-cache-dir "url/")
|
|
||||||
;; keep the point out of the minibuffer
|
;; keep the point out of the minibuffer
|
||||||
minibuffer-prompt-properties '(read-only t point-entered minibuffer-avoid-prompt face minibuffer-prompt)
|
minibuffer-prompt-properties '(read-only t point-entered minibuffer-avoid-prompt face minibuffer-prompt)
|
||||||
;; History & backup settings
|
;; History & backup settings (save nothing, that's what git is for)
|
||||||
auto-save-default nil
|
auto-save-default nil
|
||||||
auto-save-list-file-name (concat doom-cache-dir "autosave")
|
|
||||||
backup-directory-alist (list (cons ".*" (concat doom-cache-dir "backup/")))
|
|
||||||
create-lockfiles nil
|
create-lockfiles nil
|
||||||
history-length 1000
|
history-length 1000
|
||||||
make-backup-files nil
|
make-backup-files nil
|
||||||
server-auth-dir (concat doom-cache-dir "server/")
|
;; files
|
||||||
tramp-auto-save-directory (concat doom-cache-dir "tramp/")
|
abbrev-file-name (concat doom-local-dir "abbrev.el")
|
||||||
vc-make-backup-files nil
|
auto-save-list-file-name (concat doom-cache-dir "autosave")
|
||||||
|
backup-directory-alist (list (cons "." (concat doom-cache-dir "backup/")))
|
||||||
|
custom-file (concat doom-etc-dir "custom.el")
|
||||||
|
pcache-directory (concat doom-cache-dir "pcache/")
|
||||||
|
server-auth-dir (concat doom-cache-dir "server/")
|
||||||
|
shared-game-score-directory (concat doom-etc-dir "shared-game-score/")
|
||||||
|
tramp-auto-save-directory (concat doom-cache-dir "tramp-auto-save/")
|
||||||
tramp-backup-directory-alist backup-directory-alist
|
tramp-backup-directory-alist backup-directory-alist
|
||||||
;; in case of `persistent-soft'
|
tramp-persistency-file-name (concat doom-cache-dir "tramp-persistency.el")
|
||||||
pcache-directory (concat doom-cache-dir "pcache/"))
|
url-cache-directory (concat doom-cache-dir "url/")
|
||||||
|
url-configuration-directory (concat doom-etc-dir "url/")
|
||||||
|
undo-tree-history-directory-alist (list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
|
||||||
|
|
||||||
;; be quiet at startup
|
;; be quiet at startup
|
||||||
(advice-add 'display-startup-echo-area-message :override 'ignore)
|
(advice-add 'display-startup-echo-area-message :override 'ignore)
|
||||||
|
|
|
@ -22,11 +22,14 @@
|
||||||
:commands elfeed
|
:commands elfeed
|
||||||
:config
|
:config
|
||||||
(setq-default elfeed-search-filter "@2-week-ago ")
|
(setq-default elfeed-search-filter "@2-week-ago ")
|
||||||
(setq elfeed-db-directory (concat doom-local-dir "elfeed/")
|
(setq elfeed-db-directory (concat doom-local-dir "elfeed/db/")
|
||||||
|
elfeed-enclosure-default-dir (concat doom-local-dir "elfeed/enclosures/")
|
||||||
elfeed-show-entry-switch '+rss-popup-pane
|
elfeed-show-entry-switch '+rss-popup-pane
|
||||||
elfeed-show-entry-delete '+rss/delete-pane
|
elfeed-show-entry-delete '+rss/delete-pane
|
||||||
shr-max-image-proportion 0.6)
|
shr-max-image-proportion 0.6)
|
||||||
|
|
||||||
|
(make-directory elfeed-db-directory t)
|
||||||
|
|
||||||
;; Ensure elfeed buffers are treated as real
|
;; Ensure elfeed buffers are treated as real
|
||||||
(push (lambda (buf) (string-match-p "^\\*elfeed" (buffer-name buf)))
|
(push (lambda (buf) (string-match-p "^\\*elfeed" (buffer-name buf)))
|
||||||
doom-real-buffer-functions)
|
doom-real-buffer-functions)
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
;;; feature/version-control/config.el
|
;;; feature/version-control/config.el
|
||||||
|
|
||||||
|
(setq vc-make-backup-files nil)
|
||||||
|
|
||||||
(load! +git)
|
(load! +git)
|
||||||
;; (load! +hg)
|
;; (load! +hg)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,13 @@
|
||||||
dired-recursive-deletes 'top
|
dired-recursive-deletes 'top
|
||||||
;; Auto refresh dired, but be quiet about it
|
;; Auto refresh dired, but be quiet about it
|
||||||
global-auto-revert-non-file-buffers t
|
global-auto-revert-non-file-buffers t
|
||||||
auto-revert-verbose nil)
|
auto-revert-verbose nil
|
||||||
|
;; files
|
||||||
|
image-dired-dir (concat doom-cache-dir "image-dired/")
|
||||||
|
image-dired-db-file (concat image-dired-dir "image-dired/db.el")
|
||||||
|
image-dired-gallery-dir (concat image-dired-dir "gallery/")
|
||||||
|
image-dired-temp-image-file (concat image-dired-dir "temp-image")
|
||||||
|
image-dired-temp-rotate-image-file (concat image-dired-dir "temp-rotate-image"))
|
||||||
|
|
||||||
(defun +dired|sort-directories-first ()
|
(defun +dired|sort-directories-first ()
|
||||||
"List directories first in dired buffers."
|
"List directories first in dired buffers."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue