Live data from Hacker News

Emacs under Clojure

github.com

31–37 of 37 posts

Re: Emacs under Clojure

#31

Earlier quoted context omitted.

For anybody who codes in anything other than Clojure (although I have that too), you can partake of a 40,000 LOC elisp dotfiles repo. I have shake-n-bake modules for virtually any language or use-case you could want. https://github.com/bitemyapp/dotfiles/tree/master/.emacs.d If you have any requests, I can probably bake it up. Included is the awesome Ensime package for Scala and Shime (Slime) a repl for Haskell. See…

You'll have to restructure again now that package.el is standard and better.

I abhor package management in my Emacs. I am also avoiding Emacs 24 for now.

Yes, I'm serious.

Re: Emacs under Clojure

#32
post #11

Why not just write a similar editor, with same shortcuts, rewritten modules/modes etc, but with new architecture and paradigms?

I think this is something that light table is in a better position to pull off. It's new, doesn't have to worry about compatibility, and the worst case is you have to configure it with javascript (if I recall correctly) and not a lisp. Whether or not it can, or even wants to, live up to that, is another matter entirely. But it'd be great if it does.

You're making it sound like a chore to script in lisp. The whole point is that lisp is probably the most concise and flexible (i.e. most powerful in both the pg sense and the conventional sense) way to customize a sufficiently large environment, Clojure maybe even more so than CL.

Re: Emacs under Clojure

#33
post #27

Author here. Thanks for the support everyone! Seems like there is an interest in such a thing, so I'll better start hacking on this again. There are two parts to this. First, pure learning and fun - even if it goes nowhere. Second, "Extensible" is the keyword here. The goal is to find the right balance between backwards compatibility (Emacs Lisp) and forward extensibility (Clojure / JVM), so I'm not interested in wri…

Hmm, I'm confused by "the goal is to find the right balance between backwards compatibility (Emacs Lisp) and forward extensibility (Clojure / JVM)". I assumed the idea was to write emacs in Clojure and all the modules would be in clojure so that it would entirely self-contained system with perhaps macros to make porting from emacs-lisp easier. But now it sounds like you want to write an emacs-lisp emulator in Clojure ?

Re: Emacs under Clojure

#34
post #33
post #27

Author here. Thanks for the support everyone! Seems like there is an interest in such a thing, so I'll better start hacking on this again. There are two parts to this. First, pure learning and fun - even if it goes nowhere. Second, "Extensible" is the keyword here. The goal is to find the right balance between backwards compatibility (Emacs Lisp) and forward extensibility (Clojure / JVM), so I'm not interested in wri…

Hmm, I'm confused by "the goal is to find the right balance between backwards compatibility (Emacs Lisp) and forward extensibility (Clojure / JVM)". I assumed the idea was to write emacs in Clojure and all the modules would be in clojure so that it would entirely self-contained system with perhaps macros to make porting from emacs-lisp easier. But now it sounds like you want to write an emacs-lisp emulator in Clojure…

The Emacs Lisp emulator is necessary, otherwise it won't be Emacs. This part will work similar to how shen.clj[1] works. This is itself an interesting project, but as people have said, "why?"

Because new extensions can then be written in Clojure (or other JVM languages) against the same core API (with shared concepts like "buffer" and "window").

Now the line of what's core and what's extension can be blurred, and while keeping backwards compatibility, one can evolve the entire architecture in Clojure, free from the constraints of the old Emacs code base.

But, easier said than done!

[1] https://github.com/hraberg/shen.clj

Re: Emacs under Clojure

#35
post #14

If this were a Kickstarter, I'd buy the top package. This is something I've wanted for a long while. Good luck!

Thanks!

I actually had a quick look at this, and Kickstarter funding is for US residents only. Indiegogo seems like an alternative (guess there are a lot of opinions on what crowd funding platform to use).

Also, I'm not sure what "rewards" I could give, "listed as a contributor, in a file hidden deep in my git repo"?

Anyway, more code first, then maybe revisit this!

Re: Emacs under Clojure

#37

Earlier quoted context omitted.

You'll have to restructure again now that package.el is standard and better.

I abhor package management in my Emacs. I am also avoiding Emacs 24 for now. Yes, I'm serious.

It must be quite a chore to manually update all that elisp!
Post reply on HN