This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-09
Channels
- # announcements (3)
- # babashka (63)
- # beginners (55)
- # calva (14)
- # cider (12)
- # clj-commons (20)
- # clj-kondo (22)
- # clojure (149)
- # clojure-europe (4)
- # clojurescript (25)
- # community-development (3)
- # conjure (9)
- # datomic (5)
- # emacs (2)
- # fulcro (2)
- # hyperfiddle (6)
- # lsp (23)
- # nbb (4)
- # pedestal (2)
- # reagent (26)
- # releases (3)
- # sql (3)
- # xtdb (6)
[Code Folding] I would like to fold (defn ...)
blocks. I have tried origami
, but it also folds all nested forms inside my top level defn
. Any suggestions how I can setup a folding of only the top level forms?
hideshow
should be able to do what you want.
Check the https://www.gnu.org/software/emacs/manual/html_node/emacs/Hideshow.html and customize hs-special-modes-alist
as needed.
Tree-sitter should also be able to handle this, but it's spotty support wise atm, can't comment on how good Clojure's is.
👍 2