emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Brand new clojure support in Emacs ;-)


From: Danny Freeman
Subject: Re: Brand new clojure support in Emacs ;-)
Date: Fri, 01 Sep 2023 14:39:53 -0400

João Távora <joaotavora@gmail.com> writes:

>> In no particular order:
>> - Clojure-mode has built in refactoring tools, not all of which exist in
>>   clojure-lsp (to the best of my knowledge).
>
> An example or two would be nice.  

I don't use the clojure-lsp refactoring tools, so can't speak much to
them. The clojure mode ones are numerous, and include a lot of helpers
for winding and unwinding threading macros, extracting things out into
definitions and let bindings, namespace sorting (I'm pretty sure
clojure-lsp does that), changing collection literals, and more.

I'm sure the clojure-lsp refactoring tools are very capable.

> It seems you are saying that it is tightly coupled with CIDER.  Is this
> API described anywhere?

I don't think so. CIDER and clojure-mode are developed in lock-step,
along side a couple other projects written in clojure to support CIDER
from within the clojure repl process. The API is just the functions that
CIDER calls from clojure-mode. If you want more information you will be
best off reading the CIDER source.

>> There is nothing very special about clojure-ts-mode that I develop right
>> now. It is a work in progress and far from finished. It's not even quite
>> to the point where I can dogfood it at work yet. A long term goal is to
>> provide everything clojure-mode provides for CIDER with
>> clojure-ts-mode.
>
> I might have missed some important from yourself, but if clojure-ts-mode
> is in such stages of infancy and you are its author, why don't you
> consider placing clojure-ts-mode in a GNU repository?  If CIDER is such
> a fundamental tool (like SLIME and SLY are for Common Lisp) your
> long-term goals would decidely also apply to any future GNU Clojure
> mode for Emacs.

I see your other message where you discovered some of my reasoning, and 
I feel I've already explained my position. You will also see a later
message where I said once clojure-ts-mode is in a more "done" state I
will revisit the question of inclusion here with other clojure-mode
devs. Until then I will continue to develop clojure-ts-mode in the
clojure-emacs github organization with the intention of integrating it
with the rest of the clojure-emacs tooling. I appreciate the numerous
offers I have had to pull clojure-ts-mode into Emacs, but for now I am
saying no.

-- 
Danny Freeman



reply via email to

[Prev in Thread] Current Thread [Next in Thread]