doom/clear-* => doom/clean-* (consistent with makefile tasks)

This commit is contained in:
Henrik Lissner 2017-03-19 23:48:43 -04:00
parent f3a065868c
commit 8aac4b2091
4 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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)

View file

@ -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