fix(irc): do not emit an error when calling =irc

When the *IRC* workspace is already populated by circe buffers, there is
no reason to emit an error, just switch to the *IRC* workspace and do
nothing.
This commit is contained in:
Antonio Ruiz 2022-08-31 14:37:31 -04:00 committed by Henrik Lissner
parent 31a6fa77d0
commit b2154b5f9b

View file

@ -13,8 +13,7 @@
(require 'circe)
(delete-other-windows)
(switch-to-buffer (doom-fallback-buffer))
t)
(user-error "IRC buffer is already active and selected"))))
t))))
;;;###autoload
(defun =irc (&optional inhibit-workspace)