From 4abb7a83d5116b8a136cb2d92d6e207c559afc06 Mon Sep 17 00:00:00 2001 From: "Itai Y. Efrat" Date: Fri, 21 May 2021 12:41:28 +0300 Subject: [PATCH] :app irc restore +irc/tracking-next-buffer Accidentally got removed in 5ddf8b9 --- modules/app/irc/autoload/irc.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/app/irc/autoload/irc.el b/modules/app/irc/autoload/irc.el index 8f701d648..fac63139f 100644 --- a/modules/app/irc/autoload/irc.el +++ b/modules/app/irc/autoload/irc.el @@ -71,6 +71,14 @@ argument) is non-nil only show channels in current server." (cond ((featurep! :completion ivy) #'+irc/ivy-jump-to-channel) ((user-error "No jump-to-channel backend is enabled. Enable ivy!"))))) +;;;###autoload +(defun +irc/tracking-next-buffer () + "Disables switching to an unread buffer unless in the irc workspace." + (interactive) + (when (derived-mode-p 'circe-mode) + (tracking-next-buffer))) + + ;; ;;; Hooks/fns