mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
committed by
Henrik Lissner
parent
31a6fa77d0
commit
b2154b5f9b
@ -13,8 +13,7 @@
|
|||||||
(require 'circe)
|
(require 'circe)
|
||||||
(delete-other-windows)
|
(delete-other-windows)
|
||||||
(switch-to-buffer (doom-fallback-buffer))
|
(switch-to-buffer (doom-fallback-buffer))
|
||||||
t)
|
t))))
|
||||||
(user-error "IRC buffer is already active and selected"))))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun =irc (&optional inhibit-workspace)
|
(defun =irc (&optional inhibit-workspace)
|
||||||
|
Reference in New Issue
Block a user