From 8aac4b2091558a0de92f40d2fa6437e6b5b7c7f9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 19 Mar 2017 23:48:43 -0400 Subject: [PATCH] doom/clear-* => doom/clean-* (consistent with makefile tasks) --- Makefile | 4 ++-- core/core-os.el | 2 +- core/core-packages.el | 4 ++-- core/core.el | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index c066b46dc..fe7fc84f2 100644 --- a/Makefile +++ b/Makefile @@ -21,10 +21,10 @@ compile: init.el clean @$(EMACS) -l core/core.el -f 'doom/recompile' clean: - @$(EMACS) -l core/core.el -f 'doom/clear-compiled' + @$(EMACS) -l core/core.el -f 'doom/clean-compiled' clean-cache: - @$(EMACS) -l core/core.el -f 'doom/clear-cache' + @$(EMACS) -l core/core.el -f 'doom/clean-cache' # This is only useful if your emacs.d is somewhere other than ~/.emacs.d (for # development purposes for instance). diff --git a/core/core-os.el b/core/core-os.el index aec485766..20dbf43ce 100644 --- a/core/core-os.el +++ b/core/core-os.el @@ -27,7 +27,7 @@ ;; A known problem with GUI Emacs on MacOS: it runs in an isolated ;; environment, so envvars will be wrong. That includes the PATH Emacs ;; picks up. `exec-path-from-shell' fixes this, and its result is cached. - ;; Run `doom/clear-cache' to regenerate exec-path if PATH changes. + ;; Run `doom/clean-cache' to regenerate exec-path if PATH changes. (cond ((display-graphic-p) ;; `exec-path-from-shell' is slow, so bring out the cache (setq exec-path diff --git a/core/core-packages.el b/core/core-packages.el index 8b7d9afa7..163e4b6a3 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -473,13 +473,13 @@ This may take a while." (message "\n%s" (mapconcat (lambda (file) (concat "+ ERROR: " (car file))) (nreverse errors) "\n")))))) -(defun doom/clear-cache () +(defun doom/clean-cache () "Clear local cache (`doom-cache-dir'). You may need to restart Emacs for some components to feel its effects." (delete-directory doom-cache-dir t) (make-directory doom-cache-dir t)) -(defun doom/clear-compiled () +(defun doom/clean-compiled () "Delete all compiled elc files in DOOM emacs, excluding compiled ELPA/QUELPA package files." (interactive) diff --git a/core/core.el b/core/core.el index 58ab6e341..8dd6f7a7f 100644 --- a/core/core.el +++ b/core/core.el @@ -53,7 +53,7 @@ or unstable files.") (defvar doom-cache-dir (concat doom-local-dir "cache/" (system-name) "/") "Hostname-based directory for volatile temporary files. They are deleted when -`doom/clear-cache' is called. For more stable local storage, use +`doom/clean-cache' is called. For more stable local storage, use `doom-local-dir'.") (defvar doom-autoload-file