Minor, general refactors

This commit is contained in:
Henrik Lissner 2019-03-07 23:21:58 -05:00
parent 8f733c2ab5
commit 748b197676
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 17 additions and 15 deletions

View file

@ -273,11 +273,12 @@ savehist file."
(def-package! helpful
:defer t
:init
(global-set-key [remap describe-function] #'helpful-callable)
(global-set-key [remap describe-command] #'helpful-command)
(global-set-key [remap describe-variable] #'helpful-variable)
(global-set-key [remap describe-key] #'helpful-key)
(global-set-key [remap describe-symbol] #'helpful-symbol))
(define-key!
[remap describe-function] #'helpful-callable
[remap describe-command] #'helpful-command
[remap describe-variable] #'helpful-variable
[remap describe-key] #'helpful-key
[remap describe-symbol] #'helpful-symbol))
(def-package! ws-butler

View file

@ -114,10 +114,11 @@ Accepts the same arguments as `message'."
,(concat (propertize "DOOM " 'face 'font-lock-comment-face)
format-string
(when doom--current-module
(propertize (format " [%s/%s]"
(doom-keyword-name (car doom--current-module))
(cdr doom--current-module))
'face 'warning)))
(propertize
(format " [%s/%s]"
(doom-keyword-name (car doom--current-module))
(cdr doom--current-module))
'face 'warning)))
,@args))))
(defun FILE! ()

View file

@ -84,7 +84,7 @@ non-nil."
;;
;; Module API
;;; Module API
(defun doom-module-p (category module)
"Returns t if CATEGORY MODULE is enabled (ie. present in `doom-modules')."
@ -194,7 +194,6 @@ non-nil, return paths of possible modules, activated or otherwise."
(let ((noninteractive t)
doom-modules
doom-init-modules-p)
(message "Initializing modules")
(load! "init" doom-private-dir t)
(or doom-modules
(make-hash-table :test 'equal
@ -203,7 +202,7 @@ non-nil, return paths of possible modules, activated or otherwise."
;;
;; Use-package modifications
;;; Use-package modifications
(autoload 'use-package "use-package-core" nil nil t)
@ -292,7 +291,7 @@ non-nil, return paths of possible modules, activated or otherwise."
;;
;; Module config macros
;;; Module config macros
(defmacro doom! (&rest modules)
"Bootstraps DOOM Emacs and its modules.