From Masteringemacs:
One of the hallmarks of Emacs is its ability to interface with external processes and add to the user experience with the full coterie of Emacs functionality like syntax highlighting, macros, command history, and so on. This functionality has been in Emacs since time immemorial, yet few people make their own command interpreters – also known as comint – in Emacs, fearing that it is either really difficult or not possible.
It’s not surprising people feel this way when you consider how woefully underdocumented this functionality is; the few, scattered references to comint “mode” reveal little, and as a hacker you are forced to use the source, Luke.
So, this is a simple Clojure REPL support for Emacs that can be used to help edit/investigate any Clojure source code from the associated buffer (or not).
Be a lightweight alternative to (inf-clojure and
cider) following the Emacs/Elisp philosophy.
- Alpha: 0.0.8
- comint
- clojure-mode (optional)
| Emacs | 27.1 | 28.0 |
| FreeBSD | 12.1 | 12.2 |
| OpenBSD | 6.8 |
Clone Iclj repository to an arbitrary location:
$ git clone https://codeberg.org/lambdart/iclj ~/.emacs.d/site-elisp/iclj
Add Iclj directory to load-path in your
Emacs initialization file (init.el) and load it.
;; add to load-path
(add-to-list 'load-path "/replace/me/to/iclj/full/path")
;; load iclj feature
(require 'iclj nil t)
- Note: For a more dynamic approach:
M-x load-file RETM-x load-library RET iclj RET
- Note: Optional (recommended).
To compile the files to the Elisp byte-compiled representation:
[at-iclj-root-directory]$ gmake
- Note: To see all the options from
Emacsdirectly, and to customize it, just type:M-x customize-group RET iclj RET.
MIT
Deisgn patterns are spoonfeed material for brainless programmers incapable of independet thought, who will be resolved producing code as mediocre as the design patterns they used to create it.
| Christer Ericson |