emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
vemv 2021-03-22T01:36:48.013Z

there isn't a way (without major hacking) although there's some desire from the clojure-emacs people to implement it As of today, IMO the right approach is to avoid ;. Under Lisp/emacs tradition ; has a very specific meaning, but 99% of Clojure developers don't know about it, or decide to disregard it. So it is counterproductive to use it, given that emacs will apply assumptions that don't match our reality.

dotemacs 2021-03-22T09:09:05.013200Z

There was this discussion about this a while back: https://github.com/clojure-emacs/clojure-mode/issues/516

practicalli-john 2021-03-22T09:30:07.017700Z

;; is the recommended line comment for Clojure, please consider using this style. Clojure aware editors typically have a key binding that comments using this style (or are easily configured to do so)

2โž•
grazfather 2021-03-22T14:40:43.018Z

I was wondering why my editor kept changing my comments to two ;

cgore 2021-03-22T15:33:05.018200Z

As someone who came from Common Lisp, I'd instead rather implement the Emacs behavior in IntelliJ ๐Ÿ˜„

1๐Ÿ‘
cgore 2021-03-22T15:33:11.018400Z

So people comment correctly.

teodorlu 2021-03-22T16:29:41.019900Z

Hey! Do you have a nice workflow for cleaning up local branches? Care to share? I'd love something like dired's ddddddxy, but from what I can see, Magit doesn't provide a buffer-of-branches that works like this.

teodorlu 2021-03-23T08:51:12.022900Z

Huh, interesting. Thanks for investigating!

bozhidar 2021-03-23T16:52:13.024300Z

There's also https://emacsredux.com/blog/2021/03/23/deleting-git-branches-with-magit/

1โค๏ธ
bozhidar 2021-03-23T16:52:16.024500Z

๐Ÿ˜‰

teodorlu 2021-03-23T18:18:59.025100Z

Great timing, @bozhidar! ๐Ÿ˜„

teodorlu 2021-03-23T18:23:02.025300Z

The DOOM Emacs configuration for Magit seems to be using y for yanking stuff, not opening a branch list.

teodorlu 2021-03-23T18:25:45.025500Z

The branch "dispatch ground" doesn't seem to list a way for me to do this either. Guess I should learn how to open packages with unconfigured key bindings.

teodorlu 2021-03-23T18:33:09.025900Z

For DOOM users:

M-x magit-dispatch y C-v jjj x
This does: 1. Bring up the "other" dispatch menu, that you perhaps didn't know you have (I didn't) 2. y to list refs 3. start visual mode and select 4. Press x to delete selected.

hindol 2021-03-23T19:17:20.027300Z

This is what is suggested in the StackExchange thread also. The answer is by none other than https://github.com/tarsius. You are right about y being bound to yank. But I can just type ? in the Magit buffer which is bound to magit-dispatch (in Doom).

1๐Ÿ‘
teodorlu 2021-03-23T21:26:20.028Z

> But I can just typeย `?`ย in the Magit buffer which is bound toย `magit-dispatch`ย (in Doom) Ah, thanks. I thought that was the "help menu", I wasn't aware that the key bindings were different from the key bindings in M-x magit-status. Learn something new every day!

ag 2021-03-22T17:52:54.020300Z

I don't do that very often; that's why I never bothered about automating this. Basically, I would turn off the read-only mode, copy the names of the branches, paste in a scratch buffer, join the lines, then go back to Magit buffer and press ! ! then run git -D branch-1 branch-2 ... branch-n

1๐Ÿ‘
hindol 2021-03-22T17:57:20.020500Z

The correct patch is here: https://github.com/clojure-emacs/clojure-mode/pull/585/files

practicalli-john 2021-03-22T18:23:27.021100Z

Cursive can be configured to use ;; for comments

hindol 2021-03-22T21:06:37.021400Z

Is this similar to what you want? https://emacs.stackexchange.com/a/19013