This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-31
Channels
- # adventofcode (4)
- # ai (1)
- # announcements (13)
- # babashka (1)
- # beginners (42)
- # calva (15)
- # chlorine-clover (28)
- # cider (7)
- # cljsrn (1)
- # clojure (3)
- # clojure-china (1)
- # clojure-dev (4)
- # clojure-europe (7)
- # clojure-losangeles (1)
- # clojure-nl (3)
- # clojure-nlp (2)
- # clojure-sweden (12)
- # clojure-uk (2)
- # clojurescript (30)
- # code-reviews (36)
- # core-async (5)
- # cursive (10)
- # data-science (1)
- # datalevin (1)
- # fulcro (11)
- # introduce-yourself (1)
- # lsp (10)
- # malli (7)
- # minecraft (24)
- # missionary (10)
- # monads (6)
- # nrepl (4)
- # off-topic (11)
- # portal (4)
- # rdf (1)
- # reagent (3)
- # releases (4)
- # shadow-cljs (4)
- # spacemacs (4)
Hi everyone,
I use practicalli's config for spacemacs but last month after updating to the latest the auto-indentation and auto-alignment stopped working.
Before that any change for instance to a let form caused spacemacs to instantly align the binding and value forms vertically. What settings do I have to change for it to get fixed?
Info :
• Emacs :
◦ Version : GNU Emacs 27.2
• Spacemacs :
◦ branch : develop
◦ commit 5bcedd19123248bc7a6d80994784062e524ebe05
commit 5bcedd19123248bc7a6d80994784062e524ebe05 (HEAD -> develop, origin/develop, origin/HEAD)
Author: SpacemacsBot <[email protected]>
Date: Sat Dec 18 06:24:44 2021 +0200
[bot] built_in_updates (#15210)
Co-authored-by: SpacemacsBot <[email protected]>
• Practicalli's .spacemacs.d
:
commit 288effd2f3c040e59fd83d28b5afd967c3649603 (HEAD -> live, origin/live, origin/HEAD)
Author: John Practicalli <[email protected]>
Date: Sat May 15 11:38:24 2021 +0100
lsp: doc signature and popup alignment configuration
• Changes to the Practicalli's default config :
(clojure :variables
- ;; clojure-backend 'cider ;; use cider and disable lsp
- ;; clojure-enable-linters 'clj-kondo ;; clj-kondo included in lsp
+ clojure-backend 'cider ;; use cider and disable lsp
+ clojure-enable-linters 'clj-kondo ;; clj-kondo included in lsp
cider-repl-display-help-banner nil ;; disable help banner
cider-pprint-fn 'fipp ;; fast pretty printing
- clojure-indent-style 'align-arguments
clojure-align-forms-automatically t
+ clojure-indent-style 'align-arguments
clojure-toplevel-inside-comment-form t ;; evaluate expressions in comment as top level
+ clojure-enable-clj-refactor t
cider-result-overlay-position 'at-point ;; results shown right after expression
cider-overlays-use-font-lock t
cider-repl-buffer-size-limit 100 ;; limit lines shown in REPL buffer
Thanks a lot for you helpI changed that behaviour a while ago, as it clashed really badly with LSP. If you are not using LSP, or have disabled the auto-formatting of LSP, then uncomment the hook that is in the dotspacemacs/user-config section
;; Auto-indent code automatically
;;
;; (add-hook 'clojure-mode-hook #'aggressive-indent-mode)
It's on line 1046If you do use LSP to auto-format, then SPC = l
will do some of the aligning, although it's not quite as good.
Thanks a lot @U05254DQM