Questions tagged [clojure]
Clojure is a modern Lisp dialect for the Java Virtual Machine (with versions for the CLR and JavaScript).
51 questions
0
votes
1
answer
35
views
Clojure mismatch completion behaviour
Current behavior:
Mismatch of completions. I want to have a completion similar to the REPL in the buffer. Not intentional; I want them to match (following the cider-repl completion behaviour).
My ...
1
vote
1
answer
57
views
Get current namespace with elisp
I'm trying to build a fn that generates a mock from a schema.
Once connected to the REPL in a Clojure project, I want to be able to generate a mock from a Plumatic schema. I'm using a lib that does ...
0
votes
1
answer
180
views
Configuring Clojure Mode to use Parinfer layer in Spacemacs
I am an experienced Clojure developer making the transition to using Spacemacs. I would like to use parinfer in my setup to manipulate my Clojure code structure, but I am struggling to get the ...
0
votes
1
answer
161
views
Couldn't run single clojure test instead getting warning "cider no test at point"
I'm using emacs as clojure development environment. My emacs config is here
I'm trying to run single test in my clojure project.
I've test file called core-test in the folder test/getting-started/core-...
0
votes
1
answer
45
views
How to fix the installation of package clj-refactor?
I am using Emacs on a macOS Monterey 12.5 (M1 hardware). This is my config file.
I am trying to install a package called clj-refactor for Clojure development.
Following the instructions on the ...
0
votes
1
answer
32
views
Issue when expanding clojure source blocks
I have defined expand and execute functions for 'text' source blocks as follows:
(defun org-babel-expand-body:text (body params)
(org-trim body))
(defun org-babel-execute:text (body params)
(org-...
0
votes
1
answer
428
views
Unable to import project with lsp/lsp-mode, persistent completing-read popup message
I recently had to redo my development setup, I'm using Clojure and clojure-lsp as lsp server, and every time I open a project file I get the message `"x" file is not part of any project"...
0
votes
1
answer
67
views
M-x cider-jack-in keeps starting server forever, but not really starting. How to integrate Emacs development to this Clojure project?
I am new to Clojure and I am using one of Eirc Normad's course to learn.
After following the instructions, I do a git clone of:
git clone https://github.com/lispcast/introduction-to-clojure.git
...
2
votes
2
answers
528
views
Key binding to run Clojure code in running cider REPL and specified namespace
I have cider working just fine in Emacs with my Clojure code. I am following a tutorial that uses Cursive as the IDE; in the tutorial they were able to define a key binding to a line of code in a ...
0
votes
1
answer
56
views
Trying to auto load these packages in Clojure files, they worked the first time but don't work anymore
I have the following function to auto start raindow-delimters and paredit
(defun my-lisp-hook ()
(enable-paredit-mode 1)
(rainbow-delimiters-mode 1))
(add-hook 'clojure-mode-hook 'my-lisp-hook)
...
0
votes
1
answer
219
views
parinfer-rust-mode doesn't get enabled automatically with clojure-mode via hook
The problem: upon opening a .clj file, the clojure-mode correctly starts. However, parinfer-rust-mode doesn't, despite being added to a clojure-mode-hook.
The setup (everything related to clojure from ...
2
votes
1
answer
130
views
hide-show display multiple lines while collapsed
Is it possible to have hide-show folding display multiple lines (probably 3) in the folded version? This would get us practically to having a codox-like view right inside a buffer.
What I'm trying to ...
0
votes
0
answers
55
views
lsp-clojure starts 3 times
lsp-clojure is executed 3 times when I start emacs so it ends up using about 2.5G of memory.
$ ps aux | fgrep java
benwiz 7920 82.8 8.7 6107672 1068712 ? Ssl 08:11 1:18 java -Xmx2g -...
0
votes
1
answer
136
views
Clojure nrepl: 'cider-jack-in returns error: "Spawning child process: Invalid argument"
Running GNUEmacs 26.3 on Windows 10, trying to set up environment per instructions for 'Clojure for the Brave and True' from here:
https://github.com/flyingmachine/emacs-for-clojure/
I was able to ...
1
vote
0
answers
26
views
CIDER inspector unable to refresh a modified atom
With the CIDER inspector I'm able to view the contents of an atom. I can do C-u C-u C-c M-i and input the atom with an @ prefix and the value displays correctly. Now, if I keep the inspector window ...