Add: app/irc: (=irc) if irc workspace exists switch to that

don't connect to the networks again
This commit is contained in:
Benjamin Andresen 2017-08-06 15:44:27 +02:00
parent 2286a6404f
commit 00180310df

View file

@ -20,9 +20,11 @@
If INHIBIT-WORKSPACE (the universal argument) is non-nil, don't spawn a new
workspace for it."
(interactive "P")
(and (+irc-setup-wconf inhibit-workspace)
(cl-loop for network in circe-network-options
collect (circe (car network)))))
(if (+workspace-exists-p +irc--workspace-name)
(+workspace-switch +irc--workspace-name)
(and (+irc-setup-wconf inhibit-workspace)
(cl-loop for network in circe-network-options
collect (circe (car network))))))
;;;###autoload
(defun +irc/connect (&optional inhibit-workspace)