💥 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:
parent
c795a988e6
commit
76cacb5bfe
110 changed files with 310 additions and 308 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; ui/deft/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! deft
|
||||
(use-package! deft
|
||||
:commands deft
|
||||
:init
|
||||
(setq deft-extensions '("org" "md" "tex" "txt")
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
;; Packages
|
||||
|
||||
;; <https://github.com/hlissner/emacs-doom-theme>
|
||||
(def-package! doom-themes
|
||||
(use-package! doom-themes
|
||||
:defer t
|
||||
:init
|
||||
(unless doom-theme
|
||||
|
@ -40,7 +40,7 @@
|
|||
(add-hook 'doom-load-theme-hook #'doom-themes-treemacs-config)))
|
||||
|
||||
|
||||
(def-package! solaire-mode
|
||||
(use-package! solaire-mode
|
||||
:defer t
|
||||
:init
|
||||
(add-hook 'doom-load-theme-hook
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; ui/hl-todo/packages.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! hl-todo
|
||||
(use-package! hl-todo
|
||||
:hook (prog-mode . hl-todo-mode)
|
||||
:config
|
||||
(setq hl-todo-highlight-punctuation ":"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; ui/indent-guides/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! highlight-indent-guides
|
||||
(use-package! highlight-indent-guides
|
||||
:hook ((prog-mode text-mode conf-mode) . highlight-indent-guides-mode)
|
||||
:init
|
||||
(setq highlight-indent-guides-method 'character)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; ui/modeline/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! doom-modeline
|
||||
(use-package! doom-modeline
|
||||
:hook (after-init . doom-modeline-mode)
|
||||
:init
|
||||
(unless after-init-time
|
||||
|
@ -67,9 +67,9 @@
|
|||
;;
|
||||
;; Extensions
|
||||
|
||||
(def-package! anzu
|
||||
(use-package! anzu
|
||||
:after-call isearch-mode)
|
||||
|
||||
(def-package! evil-anzu
|
||||
(use-package! evil-anzu
|
||||
:when (featurep! :editor evil)
|
||||
:after-call (evil-ex-start-search evil-ex-start-word-search evil-ex-search-activate-highlight))
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
+org/dwim-at-point org-find-file org-find-file-at-mouse)
|
||||
"A list of commands that should not trigger nav-flash.")
|
||||
|
||||
(def-package! nav-flash
|
||||
(use-package! nav-flash
|
||||
:defer t
|
||||
:init
|
||||
;; NOTE In :tools lookup `recenter' is hooked to a bunch of jumping
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; ui/neotree/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! neotree
|
||||
(use-package! neotree
|
||||
:commands (neotree-show
|
||||
neotree-hide
|
||||
neotree-toggle
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; ui/ophints/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! evil-goggles
|
||||
(use-package! evil-goggles
|
||||
:when (featurep! :editor evil)
|
||||
:after-call pre-command-hook
|
||||
:init
|
||||
|
@ -14,7 +14,7 @@
|
|||
(evil-goggles-mode +1))
|
||||
|
||||
|
||||
(def-package! volatile-highlights
|
||||
(use-package! volatile-highlights
|
||||
:unless (featurep! :editor evil)
|
||||
:after-call pre-command-hook
|
||||
:config
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; ui/tabbar/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! centaur-tabs
|
||||
(use-package! centaur-tabs
|
||||
:after-call (after-find-file dired-initial-position-hook)
|
||||
:config
|
||||
(setq centaur-tabs-height 28
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
(delq! 'treemacs-mode aw-ignored-buffers)))
|
||||
|
||||
|
||||
(def-package! treemacs-evil
|
||||
(use-package! treemacs-evil
|
||||
:when (featurep! :editor evil +everywhere)
|
||||
:after treemacs
|
||||
:config
|
||||
|
@ -39,9 +39,9 @@
|
|||
"TAB" #'treemacs-TAB-action))
|
||||
|
||||
|
||||
(def-package! treemacs-projectile
|
||||
(use-package! treemacs-projectile
|
||||
:after treemacs)
|
||||
|
||||
(def-package! treemacs-magit
|
||||
(use-package! treemacs-magit
|
||||
:when (featurep! :tools magit)
|
||||
:after treemacs magit)
|
||||
|
|
|
@ -19,7 +19,7 @@ to the right fringe.")
|
|||
;;
|
||||
;; Packages
|
||||
|
||||
(def-package! git-gutter
|
||||
(use-package! git-gutter
|
||||
:commands git-gutter:revert-hunk git-gutter:stage-hunk
|
||||
:init
|
||||
(add-hook! '(text-mode-hook prog-mode-hook conf-mode-hook)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; ui/window-select/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! switch-window
|
||||
(use-package! switch-window
|
||||
:when (featurep! +switch-window)
|
||||
:defer t
|
||||
:init
|
||||
|
@ -10,7 +10,7 @@
|
|||
switch-window-qwerty-shortcuts '("a" "s" "d" "f" "g" "h" "j" "k" "l")))
|
||||
|
||||
|
||||
(def-package! ace-window
|
||||
(use-package! ace-window
|
||||
:unless (featurep! +switch-window)
|
||||
:defer t
|
||||
:init
|
||||
|
@ -21,7 +21,7 @@
|
|||
aw-background t))
|
||||
|
||||
|
||||
(def-package! winum
|
||||
(use-package! winum
|
||||
:when (featurep! +numbers)
|
||||
:after-call (doom-switch-window-hook)
|
||||
:config
|
||||
|
|
|
@ -36,7 +36,7 @@ stored in `persp-save-dir'.")
|
|||
;;
|
||||
;; Packages
|
||||
|
||||
(def-package! persp-mode
|
||||
(use-package! persp-mode
|
||||
:commands persp-switch-to-buffer
|
||||
:init
|
||||
(add-hook 'doom-init-modules-hook
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue