app/irc: general refactor

This commit is contained in:
Henrik Lissner 2019-01-23 15:54:12 -05:00
parent fa5bebc13a
commit 5c1edde613
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 22 additions and 26 deletions

View file

@ -84,3 +84,10 @@ argument) is non-nil only show channels in current server."
(defun +irc--ivy-switch-to-buffer-action (buffer)
(when (stringp buffer)
(ivy--switch-buffer-action (string-trim-left buffer))))
;;;###autoload
(defun +irc/tracking-next-buffer ()
"Dissables switching to an unread buffer unless in the irc workspace."
(interactive)
(when (derived-mode-p 'circe-mode)
(tracking-next-buffer)))