spacemacs

dumrat 2024-02-15T06:31:55.177629Z

One slight annoyance: I'm in a rich comment block and I want to slurp the random-uuid call. cursor indicated by |

(comment

  (str |)(random-uuid)

  ,,,)
So, SPC k s and it becomes this:
(comment

  (str (random-uuid)))
Still fine, I can eval ok and everything but is there a way to disable this?

azimpel 2024-02-15T09:44:58.611559Z

I always put an "\n" at the end of the comment form like this: (comment (str "hello") "there" \n )

πŸ‘ 1
Zeniten 2024-02-15T09:46:27.438259Z

I'm doing a same using #_f. I'd like to config it away, if possible. πŸ™‚

πŸ‘ 1
practicalli-johnny 2024-02-15T10:56:08.506989Z

I haven't found a rule to disable this behaviour. I tend to use #_() to stop the format bring up the closing comment paren. I have a rich-comment snippet in Practicalli Clojure LSP Config that creates the following code

(comment
 
 #_())

πŸ‘ 1
practicalli-johnny 2024-02-15T10:58:10.751349Z

A very simple approach is to add a , (comma) before the closing paren of the comment expression, as commas are considered whitespace by the Clojure reader

practicalli-johnny 2024-02-15T11:00:34.229729Z

Alternatively, I've found this less of an issue when using the parinfer approach rather than paredit. Although that is a bit of a cognitive change to writing code. I've only used parinfer with Neovim so far (works well though and I am less concerned with paren wrangling)

azimpel 2024-02-15T11:05:43.981879Z

A simple comma is not working as it gets collapsed anyway.

dumrat 2024-02-16T05:51:38.574829Z

I resorted to using the snippet and I think that's a good enough solution.

dumrat 2024-02-15T13:50:36.579529Z

I realized I can get lost in emacs for hours fixated on how to automate some trivial thing πŸ˜„

☺️ 2
practicalli-johnny 2024-02-15T17:33:46.936729Z

In my first year with Spacemacs I did spend quite a bit of time just submitting PRs to Spacemacs and extending my own user config. I dread to think how long it would have taken if I had tried doing this from scratch. I would certainly be using far fewer features, even nearly a decade later...

πŸ‘ 1
dumrat 2024-02-15T17:41:38.196019Z

I went and had a look at some emacs/spacemacs use videos including one of yours. I think I'll gradually ease into it. For now, I am so happy with magit, magit todos, cider integration and portal. I have few kbds memorized but if I go crazy on spacemacs and your config I think I'll burn out. πŸ˜„

dumrat 2024-02-15T17:42:56.136659Z

magit is the best git client I think I've used

πŸ‘ 1
practicalli-johnny 2024-02-15T19:09:44.573429Z

Magic Forge is great too, if using GitHub for issues and PRs (which can be created & updated in Emacs)

πŸ™ 1