This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-09
Channels
- # announcements (3)
- # babashka (17)
- # beginners (75)
- # calva (43)
- # cider (1)
- # clj-kondo (54)
- # cljdoc (8)
- # cljs-dev (70)
- # clojure (83)
- # clojure-europe (27)
- # clojure-nl (4)
- # clojure-norway (4)
- # clojure-spec (8)
- # clojure-uk (13)
- # clojured (2)
- # clojurescript (47)
- # community-development (4)
- # conjure (2)
- # cursive (3)
- # datomic (5)
- # emacs (5)
- # events (3)
- # fulcro (13)
- # graalvm-mobile (19)
- # helix (2)
- # introduce-yourself (1)
- # jobs (2)
- # jobs-discuss (28)
- # kaocha (9)
- # livestream (11)
- # malli (15)
- # meander (24)
- # nextjournal (8)
- # off-topic (26)
- # pathom (1)
- # pedestal (8)
- # polylith (2)
- # portal (31)
- # re-frame (4)
- # reagent (10)
- # reitit (8)
- # remote-jobs (3)
- # sci (1)
- # shadow-cljs (66)
- # spacemacs (20)
- # testing (6)
- # vim (15)
- # xtdb (7)
Exhibit A: a typical piece of code from a .cljc file in our codebase.
When I use emacs' hide-show-mode (via 'hs-minor-mode
hook), I'd love to be able to tell it to expand one level deeper to unwrap the #?(:clj )
directive.
Does anyone have some idea how to do this? 😬
Something like this?
M-x hs-toggle-hiding
will get you from one state to the other
Here's some code that toggles hs
stuff according to custom regexes (in my case, ns
forms), might serve of inspiration
https://github.com/zenmacs/.emacs.d/blob/86732106270d7f01599d2d0fe50e0e13cbea0ef0/lib/non-submodules/vemv.clojure-interaction.el#L57-L66
@UEQPKG7HQ right, i have a bind that applies that toggle to all the forms at the same time, folding it like you see there. i want it to fold from one level down for the :clj forms, without me having to manually key there and toggle it
thanks @U45T93RA6 i'll check it out!