General reformatting & minor refactors

This commit is contained in:
Henrik Lissner 2019-02-19 15:03:14 -05:00
parent 43975d3cd4
commit c82faf7f10
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 7 additions and 7 deletions

View file

@ -372,7 +372,7 @@ package.el as appropriate."
(cl-check-type name symbol)
(doom-initialize-packages)
(unless (package-installed-p name)
(user-error "%s isn't installed" name))
(error "%s isn't installed" name))
(when (doom-package-different-backend-p name)
(user-error "%s's backend has changed and must be uninstalled first" name))
(when (or force-p (doom-package-outdated-p name))

View file

@ -76,14 +76,14 @@ If any hook returns non-nil, all hooks after it are ignored.")
(after! evil
(defmacro define-leader-key! (&rest args)
`(general-define-key
:states '(normal visual motion insert emacs)
:states '(normal visual motion emacs)
:keymaps 'doom-leader-map
:prefix doom-leader-key
:non-normal-prefix doom-leader-alt-key
,@args))
(general-create-definer define-localleader-key!
:states '(normal visual motion insert emacs)
:states '(normal visual motion emacs)
:major-modes t
:wk-full-keys nil
:prefix doom-localleader-key

View file

@ -251,7 +251,7 @@ behavior). Do not set this directly, this is let-bound in `doom|init-theme'.")
(setq whitespace-line-column nil
whitespace-style
'(face indentation tabs tab-mark spaces space-mark newline newline-mark
trailing lines-tail)
trailing lines-tail)
whitespace-display-mappings
'((tab-mark ?\t [? ?\t])
(newline-mark ?\n [ ?\n])