Received: by 10.42.172.68 with SMTP id m4mr10147443icz.1.1349717915527; Mon, 08 Oct 2012 10:38:35 -0700 (PDT) X-BeenThere: clojure-tools@googlegroups.com Received: by 10.42.84.2 with SMTP id j2ls13665741icl.0.gmail; Mon, 08 Oct 2012 10:38:35 -0700 (PDT) Received: by 10.50.191.130 with SMTP id gy2mr6401223igc.4.1349717914976; Mon, 08 Oct 2012 10:38:34 -0700 (PDT) Received: by 10.50.191.130 with SMTP id gy2mr6401222igc.4.1349717914966; Mon, 08 Oct 2012 10:38:34 -0700 (PDT) Return-Path: Received: from smtp153.dfw.emailsrvr.com (smtp153.dfw.emailsrvr.com. [67.192.241.153]) by gmr-mx.google.com with ESMTPS id s9si1267141igw.0.2012.10.08.10.38.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Oct 2012 10:38:34 -0700 (PDT) Received-SPF: neutral (google.com: 67.192.241.153 is neither permitted nor denied by best guess record for domain of c...@cemerick.com) client-ip=67.192.241.153; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 67.192.241.153 is neither permitted nor denied by best guess record for domain of c...@cemerick.com) smtp.mail=c...@cemerick.com Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp25.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 579B62D01BB for ; Mon, 8 Oct 2012 13:38:34 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp25.relay.dfw1a.emailsrvr.com (Authenticated sender: cemerick-AT-snowtide.com) with ESMTPSA id 20E082D015A for ; Mon, 8 Oct 2012 13:38:34 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Where to put nREPL init options? From: Chas Emerick In-Reply-To: <7BEB1909-46AA-4F7A-83FE-1B2FCB9C2789@gmail.com> Date: Mon, 8 Oct 2012 13:38:32 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <51D25EB7-9981-4EF9-A2A2-94EAF14D977F@cemerick.com> References: <10bb3fc8-d95a-4ef7-abc4-0a20f0b0252a@googlegroups.com> <7BEB1909-46AA-4F7A-83FE-1B2FCB9C2...@gmail.com> To: clojure-tools@googlegroups.com X-Mailer: Apple Mail (2.1278) On Oct 8, 2012, at 1:19 PM, Sam Aaron wrote: > On 8 Oct 2012, at 17:56, Chas Emerick wrote: >=20 >> I personally think that :init probably should be included in the = bootstrapping of all REPLs started from `lein`, including headless ones. = Filing an issue with Leiningen would be your next step if you agree. >=20 > If I'm correct in assuming that this would allow you to boot an nREPL = server with a specified port without starting reply, then I totally = agree. You can do that already with this in project.clj: {:repl-options {:port XXXX}} `lein repl :headless` will start nREPL on port XXXX. The :init option would just give you the ability to add code that should = always be evaluated after the nREPL server is up. - Chas=