💥 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

@ -7,7 +7,7 @@
;;
;; Packages
(def-package! calfw
(use-package! calfw
:commands cfw:open-calendar-buffer
:config
;; better frame for calendar
@ -30,14 +30,14 @@
(advice-add #'cfw:render-button :override #'+calendar-cfw:render-button-a))
(def-package! calfw-org
(use-package! calfw-org
:commands (cfw:open-org-calendar
cfw:org-create-source
cfw:open-org-calendar-withkevin
my-open-calendar))
(def-package! org-gcal
(use-package! org-gcal
:commands (org-gcal-sync
org-gcal-fetch
org-gcal-post-at-point
@ -48,4 +48,4 @@
(message "org-gcal::%s - %s" title mes)))
;; (def-package! alert)
;; (use-package! alert)

View file

@ -46,7 +46,7 @@ playback.")
;;
;; Packages
(def-package! circe
(use-package! circe
:commands circe circe-server-buffers
:init (setq circe-network-defaults nil)
:config
@ -152,14 +152,14 @@ playback.")
"n" #'circe-command-NAMES)))
(def-package! circe-color-nicks
(use-package! circe-color-nicks
:hook (circe-channel-mode . enable-circe-color-nicks)
:config
(setq circe-color-nicks-min-constrast-ratio 4.5
circe-color-nicks-everywhere t))
(def-package! circe-new-day-notifier
(use-package! circe-new-day-notifier
:after circe
:config
(enable-circe-new-day-notifier)
@ -167,7 +167,7 @@ playback.")
(+irc--pad "Day" "Date changed [{day}]")))
(def-package! circe-notifications
(use-package! circe-notifications
:commands enable-circe-notifications
:init
(if +irc-defer-notifications
@ -184,7 +184,7 @@ playback.")
(IS-LINUX 'libnotify))))
(def-package! lui
(use-package! lui
:commands lui-mode
:config
(define-key lui-mode-map "\C-u" #'lui-kill-to-beginning-of-line)
@ -240,10 +240,10 @@ Courtesy of esh-mode.el"
wrap-prefix (make-string (+ +irc-left-padding 3) ? )))))
(def-package! lui-logging
(use-package! lui-logging
:after lui
:config (enable-lui-logging))
(def-package! lui-autopaste
(use-package! lui-autopaste
:hook (circe-channel-mode . enable-lui-autopaste))

View file

@ -19,7 +19,7 @@ easier to scroll through.")
;;
;; Packages
(def-package! elfeed
(use-package! elfeed
:commands elfeed
:config
(setq elfeed-search-filter "@2-week-ago "
@ -64,7 +64,7 @@ easier to scroll through.")
(kbd "M-RET") #'elfeed-search-browse-url)))
(def-package! elfeed-org
(use-package! elfeed-org
:when (featurep! +org)
:after elfeed
:config

View file

@ -1,6 +1,6 @@
;;; app/twitter/config.el -*- lexical-binding: t; -*-
(def-package! twittering-mode
(use-package! twittering-mode
:commands twit
:config
(setq twittering-private-info-file

View file

@ -9,7 +9,7 @@
;;
;; Packages
(def-package! langtool
(use-package! langtool
:when (featurep! +langtool)
:commands (langtool-check
langtool-check-done