mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add: app/irc: (=irc) if irc workspace exists switch to that
don't connect to the networks again
This commit is contained in:
@ -20,9 +20,11 @@
|
|||||||
If INHIBIT-WORKSPACE (the universal argument) is non-nil, don't spawn a new
|
If INHIBIT-WORKSPACE (the universal argument) is non-nil, don't spawn a new
|
||||||
workspace for it."
|
workspace for it."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
|
(if (+workspace-exists-p +irc--workspace-name)
|
||||||
|
(+workspace-switch +irc--workspace-name)
|
||||||
(and (+irc-setup-wconf inhibit-workspace)
|
(and (+irc-setup-wconf inhibit-workspace)
|
||||||
(cl-loop for network in circe-network-options
|
(cl-loop for network in circe-network-options
|
||||||
collect (circe (car network)))))
|
collect (circe (car network))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +irc/connect (&optional inhibit-workspace)
|
(defun +irc/connect (&optional inhibit-workspace)
|
||||||
|
Reference in New Issue
Block a user