Fork me on GitHub
#spacemacs
<
2019-05-28
>
Igor Garcia09:05:05

Hello. Just wanted to share this. I was having issues again with my current clj project, freezing on jack-in (I could un-freeze it with C-d 3 or 4 times). Similar to https://github.com/clojure-emacs/cider/issues/1311. Last time I've fixed that by upgrading some packages and dependencies but this time it was harder. I was trying to debug it but gave up and decided to move to develop branch, now everything is faster and no freezing. So I really recommend it. Just follow @jr0cket’s advice and don't be afraid of develop 🙂

😁 4
practicalli-johnny09:05:58

Once Spacemacs 0.300.x is released, it should be okay to be on master again. Until that time, develop is the most stable version for Clojure development.

Andrea Imparato11:05:51

has it every happened to anybody that spacemacs sometimes completely loses the undo stack?

practicalli-johnny11:05:37

@andrea.imparato Yes... Something seems to have stopped a full undo history being kept sometime in the last month or three...

practicalli-johnny11:05:45

I really would like to figure out what is causing this bug. Later this week I will do some testing to see if its a package or if its something in Spacemacs itself.

alex-eberts12:05:53

does anyone run into the problem where the spacemacs menu is stuck in the open state?

practicalli-johnny12:05:09

Never seen this. Can you expand on what's happening?

practicalli-johnny12:05:10

I assume it's not a transient state menu, but the menu when you press SPC by itself

practicalli-johnny12:05:13

Is the spacemacs menu sticking for a particular key press, always sticking or just at random?

practicalli-johnny12:05:31

If it's a specific key press then it could be an issue with a package. If it's random, then it will be very hard to diagnose without starting with a clean Spacemacs setup. If that the case, try moving your .spacemacs and resarting Emacs

alex-eberts12:05:43

hi @jr0cket I find that sometimes the minibuffer gets stuck in the "open" state - probably because of typing the wrong keystroke. The problem is solved by restarting Emacs but I thought there might have been a well-known "reset minibuffer" command that I wasn't aware of.

alex-eberts12:05:24

to be more specific about the problem itself: the minibuffer remains open with the which-key menu showing after the SPC command has been completed

Andrea Imparato15:05:02

another question, is there a way to add a layer “on the fly” or do I always have to restart emacs?

practicalli-johnny13:05:44

Spacemacs will prompt you to install a layer if you open a recognised file extension, eg. if you open project.clj Spacemacs would ask you if you want to install the layer. For all but the simplest of layers, I would always recommend a restart of Emacs though

ag15:05:11

SPC feR

ag15:05:22

If I remember it right

Andrea Imparato15:05:50

it seems you do @ag 🙂

Bravi22:05:06

does anyone know how I can automatically indent with-let (from reagent) the same way as normal let?

Bravi22:05:30

at the moment it works like this:

(with-let [a {:some "value"}
           another-a {:some "other value"}])
and I’d like to indent it as
(with-let [a         {:some "value"}
           another-a {:some "other value"}])

ag22:05:02

(add-to-list 'clojure-align-binding-forms "with-let")
M-x clojure-align  or <, f l>

8
practicalli-johnny17:05:32

It already seems to be there in the latest version of clojure-mode.el

(defcustom clojure-align-binding-forms
  '("let" "when-let" "when-some" "if-let" "if-some" "binding" "loop"
    "doseq" "for" "with-open" "with-local-vars" "with-redefs")
  "List of strings matching forms that have binding forms."
  :package-version '(clojure-mode . "5.1")
  :safe #'listp
  :type '(repeat string))

Bravi22:05:59

that’s awesome, thank you!