Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/borkdude/clj2el
Transpile Clojure to Emacs Lisp!
https://github.com/borkdude/clj2el
clojure elisp transpiler
Last synced: 3 months ago
JSON representation
Transpile Clojure to Emacs Lisp!
- Host: GitHub
- URL: https://github.com/borkdude/clj2el
- Owner: borkdude
- License: epl-1.0
- Created: 2023-03-21T11:13:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-15T10:56:17.000Z (over 1 year ago)
- Last Synced: 2024-10-23T14:06:37.596Z (4 months ago)
- Topics: clojure, elisp, transpiler
- Language: Clojure
- Homepage: https://borkdude.github.io/clj2el/
- Size: 51.8 KB
- Stars: 79
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clj2el
The clj2el tool transpiles Clojure to Emacs Lisp. It is currently incomplete,
but contributions are welcome. It is targeted at folks who know Clojure better
than Emacs Lisp.See the interactive web page [here](https://borkdude.github.io/clj2el/).
## CLI
There's also a tiny babashka CLI: `clj2el`. The CLI can be installed with
[bbin]:bbin install io.github.borkdude/clj2el --latest-sha
And used like this:
$ cat source.clj
(defn foo [x & xs] xs)(inc 2)
(map inc [1 2 3])
$ cat source.clj | clj2el
(defun foo (x &rest xs) xs)(1+ 2)
(mapcar #'1+ (vector 1 2 3))
[bbin]: https://github.com/babashka/bbin
Note that you can replace a region with `clj2el` in emacs with `C-u M-|`.
## Using `clj2el.el` from Doom Emacs
```emacs-lisp
;; packages.el
(package! clj2el :recipe (:host github :repo "borkdude/clj2el" :files ("*.el")));; config.el
(use-package! clj2el)
```