Add: app/irc: (=irc) if irc workspace exists switch to that
don't connect to the networks again
This commit is contained in:
parent
2286a6404f
commit
00180310df
1 changed files with 5 additions and 3 deletions
|
@ -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")
|
||||||
(and (+irc-setup-wconf inhibit-workspace)
|
(if (+workspace-exists-p +irc--workspace-name)
|
||||||
(cl-loop for network in circe-network-options
|
(+workspace-switch +irc--workspace-name)
|
||||||
collect (circe (car network)))))
|
(and (+irc-setup-wconf inhibit-workspace)
|
||||||
|
(cl-loop for network in circe-network-options
|
||||||
|
collect (circe (car network))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +irc/connect (&optional inhibit-workspace)
|
(defun +irc/connect (&optional inhibit-workspace)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue