doom/clear-* => doom/clean-* (consistent with makefile tasks)
This commit is contained in:
parent
f3a065868c
commit
8aac4b2091
4 changed files with 6 additions and 6 deletions
4
Makefile
4
Makefile
|
@ -21,10 +21,10 @@ compile: init.el clean
|
||||||
@$(EMACS) -l core/core.el -f 'doom/recompile'
|
@$(EMACS) -l core/core.el -f 'doom/recompile'
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@$(EMACS) -l core/core.el -f 'doom/clear-compiled'
|
@$(EMACS) -l core/core.el -f 'doom/clean-compiled'
|
||||||
|
|
||||||
clean-cache:
|
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
|
# This is only useful if your emacs.d is somewhere other than ~/.emacs.d (for
|
||||||
# development purposes for instance).
|
# development purposes for instance).
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
;; A known problem with GUI Emacs on MacOS: it runs in an isolated
|
;; A known problem with GUI Emacs on MacOS: it runs in an isolated
|
||||||
;; environment, so envvars will be wrong. That includes the PATH Emacs
|
;; environment, so envvars will be wrong. That includes the PATH Emacs
|
||||||
;; picks up. `exec-path-from-shell' fixes this, and its result is cached.
|
;; 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)
|
(cond ((display-graphic-p)
|
||||||
;; `exec-path-from-shell' is slow, so bring out the cache
|
;; `exec-path-from-shell' is slow, so bring out the cache
|
||||||
(setq exec-path
|
(setq exec-path
|
||||||
|
|
|
@ -473,13 +473,13 @@ This may take a while."
|
||||||
(message "\n%s" (mapconcat (lambda (file) (concat "+ ERROR: " (car file)))
|
(message "\n%s" (mapconcat (lambda (file) (concat "+ ERROR: " (car file)))
|
||||||
(nreverse errors) "\n"))))))
|
(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
|
"Clear local cache (`doom-cache-dir'). You may need to restart Emacs for some
|
||||||
components to feel its effects."
|
components to feel its effects."
|
||||||
(delete-directory doom-cache-dir t)
|
(delete-directory doom-cache-dir t)
|
||||||
(make-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
|
"Delete all compiled elc files in DOOM emacs, excluding compiled ELPA/QUELPA
|
||||||
package files."
|
package files."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
|
@ -53,7 +53,7 @@ or unstable files.")
|
||||||
(defvar doom-cache-dir
|
(defvar doom-cache-dir
|
||||||
(concat doom-local-dir "cache/" (system-name) "/")
|
(concat doom-local-dir "cache/" (system-name) "/")
|
||||||
"Hostname-based directory for volatile temporary files. They are deleted when
|
"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'.")
|
`doom-local-dir'.")
|
||||||
|
|
||||||
(defvar doom-autoload-file
|
(defvar doom-autoload-file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue