Refactor autoloads init in doom-initialize
Simplify doom-initialize-autoloads
This commit is contained in:
parent
ee154911ae
commit
88f1ae3797
2 changed files with 21 additions and 19 deletions
|
@ -62,17 +62,6 @@ one wants that.")
|
|||
short-name
|
||||
(car ex) (error-message-string ex))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-delete-autoloads-file (file)
|
||||
"Delete FILE (an autoloads file), and delete the accompanying *.elc file, if
|
||||
it exists."
|
||||
(or (stringp file)
|
||||
(signal 'wrong-type-argument (list 'stringp file)))
|
||||
(when (file-exists-p file)
|
||||
(delete-file file)
|
||||
(ignore-errors (delete-file (byte-compile-dest-file file)))
|
||||
(print! "Deleted old %s" (file-name-nondirectory file))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom//reload-autoloads (&optional file force-p)
|
||||
"Reloads FILE (an autoload file), if it needs reloading.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue