From: plugd Date: Fri, 16 Jul 2021 08:50:54 +0000 (+0200) Subject: Initializer can now immediately connect to chosen network. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=lurk.git;a=commitdiff_plain;h=d9a9192dde02a1d7b79771bfbc6e6cfe3a7fe1a9 Initializer can now immediately connect to chosen network. --- diff --git a/lurk.el b/lurk.el index e9c089f..bd1e416 100644 --- a/lurk.el +++ b/lurk.el @@ -1102,14 +1102,17 @@ in which case they match anything.") ;;; Main start procedure ;; -(defun lurk () - "Switch to *lurk* buffer." +(defun lurk (&optional network) + "Start lurk or just switch to the lurk buffer if one already exists. +Also connect to NETWORK if non-nil." (interactive) (if (get-buffer "*lurk*") (switch-to-buffer "*lurk*") (switch-to-buffer "*lurk*") (lurk-mode) - (lurk-setup-buffer)) + (lurk-setup-buffer) + (if network + (lurk-command-connect (list network)))) "Started LURK.")