Rename doom/clean-cache => doom/reset (+ make reset)
This commit is contained in:
parent
c8e138ff51
commit
27b344b64a
4 changed files with 11 additions and 9 deletions
5
Makefile
5
Makefile
|
@ -36,12 +36,13 @@ $(MODULES): init.el .local/autoloads.el
|
|||
clean:
|
||||
@$(EMACS) -f doom/clean-compiled
|
||||
|
||||
clean-cache:
|
||||
@$(EMACS) -f doom/clean-cache
|
||||
|
||||
clean-pcache:
|
||||
@$(EMACS) -l persistent-soft --eval '(delete-directory pcache-directory t)'
|
||||
|
||||
reset:
|
||||
@$(EMACS) -f doom/reset
|
||||
|
||||
test: init.el .local/autoloads.el
|
||||
@$(EMACS) -f doom-run-tests
|
||||
|
||||
|
|
|
@ -617,10 +617,11 @@ If ONLY-RECOMPILE-P is non-nil, only recompile out-of-date files."
|
|||
;; In case `load-path' has changed (e.g. after an update)
|
||||
(byte-recompile-file (expand-file-name "core.el" doom-core-dir) t))
|
||||
|
||||
(defun doom/clean-cache ()
|
||||
(defun doom/reset ()
|
||||
"Clear the local cache completely (in `doom-cache-dir').
|
||||
|
||||
You must restart Emacs for some components to feel its effects."
|
||||
This resets Emacs to a blank slate. You must restart Emacs for some components
|
||||
to feel its effects."
|
||||
(interactive)
|
||||
(delete-directory doom-cache-dir t)
|
||||
(make-directory doom-cache-dir t))
|
||||
|
|
|
@ -53,10 +53,10 @@ 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 (concat doom-host-dir "/cache/")
|
||||
"Host-namespaced directory for volatile storage. Deleted when
|
||||
`doom/clean-cache' is called. Use this for transient files that are generated on
|
||||
the fly like caches and temporary files. Anything that may need to be cleared if
|
||||
there are problems.")
|
||||
"Host-namespaced directory for volatile storage. Deleted when `doom/reset' is
|
||||
called. Use this for transient files that are generated on 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.")
|
||||
|
|
|
@ -163,6 +163,6 @@ These are /not/ loaded automatically. Use ~load!~ to do so.
|
|||
+ ~doom/reload-autoloads~
|
||||
+ ~doom/compile~
|
||||
+ ~doom/recompile~
|
||||
+ ~doom/clean-cache~
|
||||
+ ~doom/reset~
|
||||
+ ~doom/clean-compiled~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue