feat: Redirect custom file to cache dir
This commit is contained in:
14
users/crumb/programs/emacs/modules/syd-custom.el
Normal file
14
users/crumb/programs/emacs/modules/syd-custom.el
Normal file
@@ -0,0 +1,14 @@
|
||||
;;; syd-custom.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; To discourage use of the custom file, we store it somewhere will
|
||||
;; Impermanence will wipe it.
|
||||
(use-package emacs
|
||||
;; TODO: I'd like to allow /some/ custom variables. E.g., the trusted
|
||||
;; dir-locals files. See `hack-dir-local-variables'. It has some hooks that
|
||||
;; should make this accomplishable.
|
||||
:custom (custom-file (file-name-concat syd-data-dir "custom.el"))
|
||||
:config
|
||||
(when (file-readable-p custom-file)
|
||||
(load custom-file)))
|
||||
|
||||
(provide 'syd-custom)
|
||||
Reference in New Issue
Block a user