💥 Rename def-package! -> use-package!

Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
This commit is contained in:
Henrik Lissner 2019-07-23 12:44:03 +02:00
parent c795a988e6
commit 76cacb5bfe
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
110 changed files with 310 additions and 308 deletions

View file

@ -19,7 +19,7 @@ directives. By default, this only recognizes C directives.")
(defvar evil-want-C-w-scroll t)
(defvar evil-want-Y-yank-to-eol t)
(def-package! evil
(use-package! evil
:hook (doom-init-modules . evil-mode)
:demand t
:preface
@ -175,7 +175,7 @@ directives. By default, this only recognizes C directives.")
;;
;; Packages
(def-package! evil-commentary
(use-package! evil-commentary
:commands (evil-commentary
evil-commentary-yank
evil-commentary-yank-line
@ -183,7 +183,7 @@ directives. By default, this only recognizes C directives.")
:config (evil-commentary-mode 1))
(def-package! evil-easymotion
(use-package! evil-easymotion
:commands evilem-create evilem-default-keybindings
:config
;; Use evil-search backend, instead of isearch
@ -198,7 +198,7 @@ directives. By default, this only recognizes C directives.")
:bind ((evil-ex-search-highlight-all nil))))
(def-package! evil-embrace
(use-package! evil-embrace
:commands embrace-add-pair embrace-add-pair-regexp
:hook (LaTeX-mode . embrace-LaTeX-mode-hook)
:hook (org-mode . embrace-org-mode-hook)
@ -245,7 +245,7 @@ directives. By default, this only recognizes C directives.")
:right-regexp "\\[]})]")))
(def-package! evil-escape
(use-package! evil-escape
:commands evil-escape
:after-call evil-normal-state-exit-hook
:init
@ -261,7 +261,7 @@ directives. By default, this only recognizes C directives.")
(evil-escape-mode +1))
(def-package! evil-exchange
(use-package! evil-exchange
:commands evil-exchange
:config
(add-hook 'doom-escape-hook
@ -271,7 +271,7 @@ directives. By default, this only recognizes C directives.")
t))))
(def-package! evil-snipe
(use-package! evil-snipe
:commands (evil-snipe-mode
evil-snipe-override-mode
evil-snipe-local-mode
@ -288,7 +288,7 @@ directives. By default, this only recognizes C directives.")
(evil-snipe-override-mode +1))
(def-package! evil-surround
(use-package! evil-surround
:commands (global-evil-surround-mode
evil-surround-edit
evil-Surround-edit
@ -297,7 +297,7 @@ directives. By default, this only recognizes C directives.")
;; Allows you to use the selection for * and #
(def-package! evil-visualstar
(use-package! evil-visualstar
:commands (evil-visualstar/begin-search
evil-visualstar/begin-search-forward
evil-visualstar/begin-search-backward)
@ -310,5 +310,5 @@ directives. By default, this only recognizes C directives.")
;;
;;; Text object plugins
(def-package! exato
(use-package! exato
:commands evil-outer-xml-attr evil-inner-xml-attr)

View file

@ -17,7 +17,7 @@
;;
;; Packages
(def-package! hideshow ; built-in
(use-package! hideshow ; built-in
:commands (hs-toggle-hiding
hs-hide-block
hs-hide-level
@ -62,7 +62,7 @@
'((t))))))
(def-package! evil-vimish-fold
(use-package! evil-vimish-fold
:when (featurep! :editor evil)
:commands (evil-vimish-fold/next-fold evil-vimish-fold/previous-fold
evil-vimish-fold/delete evil-vimish-fold/delete-all

View file

@ -1,6 +1,6 @@
;;; editor/lispy/config.el -*- lexical-binding: t; -*-
(def-package! lispy
(use-package! lispy
:hook ((common-lisp-mode . lispy-mode)
(emacs-lisp-mode . lispy-mode)
(scheme-mode . lispy-mode)
@ -12,7 +12,7 @@
(setq lispy-close-quotes-at-end-p t)
(add-hook 'lispy-mode-hook #'turn-off-smartparens-mode))
(def-package! lispyville
(use-package! lispyville
:when (featurep! :editor evil)
:hook (lispy-mode . lispyville-mode)
:config

View file

@ -1,6 +1,6 @@
;;; editor/multiple-cursors/config.el -*- lexical-binding: t; -*-
(def-package! evil-mc
(use-package! evil-mc
:when (featurep! :editor evil)
:commands (evil-mc-make-cursor-here
evil-mc-make-all-cursors

View file

@ -1,6 +1,6 @@
;;; editor/objed/config.el -*- lexical-binding: t; -*-
(def-package! objed
(use-package! objed
:after-call pre-command-hook
:config
;; Prevent undo actions from exiting edit state

View file

@ -1,6 +1,6 @@
;;; editor/parinfer/config.el -*- lexical-binding: t; -*-
(def-package! parinfer
(use-package! parinfer
:hook ((emacs-lisp-mode clojure-mode scheme-mode lisp-mode) . parinfer-mode)
:init
(setq parinfer-extensions

View file

@ -7,7 +7,7 @@
;;
;; Packages
(def-package! yasnippet
(use-package! yasnippet
:commands (yas-minor-mode-on
yas-expand
yas-expand-snippet
@ -71,7 +71,7 @@
[remap yas-visit-snippet-file] #'+snippets/edit))
(def-package! auto-yasnippet
(use-package! auto-yasnippet
:defer t
:init (setq aya-persist-snippets-dir (concat doom-etc-dir "auto-snippets/"))
:config