General minor refactor & comment revision

This commit is contained in:
Henrik Lissner 2018-01-06 03:03:02 -05:00
parent b17cafc4f7
commit b28f6ed477
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 9 additions and 22 deletions

View file

@ -301,12 +301,11 @@ Do not use this for configuring Doom core."
(declare (indent defun))
(unless values
(error "Empty set! for %s" keyword))
(let ((fn (cdr (assq keyword doom-settings))))
(if fn
(apply fn values)
(when doom-debug-mode
(message "No setting found for %s" keyword)
nil))))
(if-let* ((fn (cdr (assq keyword doom-settings))))
(apply fn values)
(when doom-debug-mode
(message "No setting found for %s" keyword)
nil)))
(provide 'core-lib)
;;; core-lib.el ends here