nit: minor refactors & comment/docstring revisions

This commit is contained in:
Henrik Lissner 2022-06-21 14:40:15 +02:00
parent 773122f1ec
commit 9d1df5f298
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
8 changed files with 12 additions and 9 deletions

View file

@ -14,9 +14,9 @@
gcmh-verbose
init-file-debug
jka-compr-verbose
(message-log-max . 16384)
url-debug
use-package-verbose
(message-log-max . 16384))
use-package-verbose)
"A list of variable to toggle on `doom-debug-mode'.
Each entry can be a variable symbol or a cons cell whose CAR is the variable

View file

@ -40,6 +40,7 @@ all themes. It will apply to all themes once they are loaded."
(when (or (get 'doom-theme 'previous-themes)
(null doom-theme))
(funcall #',fn))
;; FIXME Prevent clobbering this on-the-fly
(add-hook 'doom-customize-theme-hook #',fn 100))))
;;;###autoload

View file

@ -51,9 +51,9 @@
(setq dir (car tail))
(let ((default-directory dir))
(load (expand-file-name "subdirs.el") t inhibit-message t))
(or (string-prefix-p lispdir dir)
(let ((default-directory dir))
(load (expand-file-name "leim-list.el") t inhibit-message t)))
(unless (string-prefix-p lispdir dir)
(let ((default-directory dir))
(load (expand-file-name "leim-list.el") t inhibit-message t)))
(setq tail (cdr tail)))
(load site-run-file t inhibit-message))))

View file

@ -262,8 +262,8 @@ NAME, ARGLIST, and BODY are the same as `defun', `defun*', `defmacro', and
"Run FORMS without generating any output.
This silences calls to `message', `load', `write-region' and anything that
writes to `standard-output'. In interactive sessions this won't suppress writing
to *Messages*, only inhibit output in the echo area."
writes to `standard-output'. In interactive sessions this inhibits output to the
echo-area, but not to *Messages*."
`(if doom-debug-p
(progn ,@forms)
,(if doom-interactive-p