Skip to content

Commit

Permalink
[rcirc] Fix double ownership of erc packages
Browse files Browse the repository at this point in the history
  • Loading branch information
smile13241324 committed Jul 23, 2024
1 parent 0eedebf commit d8d4528
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 9 additions & 0 deletions layers/+chat/erc/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
company-emoji
emoji-cheat-sheet-plus
erc
erc-tweet
(erc-gitter :location (recipe
:fetcher github
:repo "jleechpe/erc-gitter")
Expand Down Expand Up @@ -151,6 +152,14 @@
(add-to-list 'erc-modules 'youtube)))))
(defun erc/init-erc-yt ())

(defun erc/pre-init-erc-tweet ()
(spacemacs|use-package-add-hook erc
:post-config
(use-package erc-tweet
:init (with-eval-after-load 'erc
(add-to-list 'erc-modules 'tweet)))))
(defun erc/init-erc-tweet ())

(defun erc/pre-init-erc-yank ()
(spacemacs|use-package-add-hook erc
:post-config
Expand Down
12 changes: 6 additions & 6 deletions layers/+chat/rcirc/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
company-emoji
emoji-cheat-sheet-plus
emojify
(erc-image :toggle rcirc-enable-erc-image)
(erc-tweet :toggle rcirc-enable-erc-tweet)
(erc-yt :toggle rcirc-enable-erc-yt)
erc-image
erc-tweet
erc-yt
flyspell
(helm-rcirc :location local
:requires helm)
Expand Down Expand Up @@ -59,7 +59,7 @@
:hook (rcirc-mode . emojify-mode)
:if rcirc-enable-emojify)))

(defun rcirc/init-erc-image ()
(defun rcirc/post-init-erc-image ()
(spacemacs|use-package-add-hook rcirc
:post-config
(use-package erc-image
Expand All @@ -71,7 +71,7 @@
(add-hook 'rcirc-markup-text-functions
#'spacemacs//rcirc-image-show-url)))))

(defun rcirc/init-erc-tweet ()
(defun rcirc/post-init-erc-tweet ()
(spacemacs|use-package-add-hook rcirc
:post-config
(use-package erc-tweet
Expand All @@ -83,7 +83,7 @@
(add-hook 'rcirc-markup-text-functions
#'spacemacs//rcirc-tweet-show-tweet)))))

(defun rcirc/init-erc-yt ()
(defun rcirc/post-init-erc-yt ()
(spacemacs|use-package-add-hook rcirc
:post-config
(use-package erc-yt
Expand Down

0 comments on commit d8d4528

Please sign in to comment.