From 27b344b64ae7fb36a0a1d58bb1ece7297561f868 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 9 Jul 2017 22:50:29 +0200 Subject: [PATCH] Rename doom/clean-cache => doom/reset (+ make reset) --- Makefile | 5 +++-- core/core-packages.el | 5 +++-- core/core.el | 8 ++++---- modules/README.org | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 0f6a63270..626ac2227 100644 --- a/Makefile +++ b/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 diff --git a/core/core-packages.el b/core/core-packages.el index 54d6599a8..8f516218a 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -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)) diff --git a/core/core.el b/core/core.el index ddb736537..571ed419e 100644 --- a/core/core.el +++ b/core/core.el @@ -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.") diff --git a/modules/README.org b/modules/README.org index 7c44c0d7a..4163f5883 100644 --- a/modules/README.org +++ b/modules/README.org @@ -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~