This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-16
Channels
- # announcements (7)
- # asami (31)
- # aws (9)
- # babashka (29)
- # bangalore-clj (8)
- # beginners (153)
- # calva (4)
- # cider (21)
- # clj-kondo (29)
- # clojure (78)
- # clojure-australia (2)
- # clojure-dev (63)
- # clojure-europe (22)
- # clojure-italy (7)
- # clojure-nl (3)
- # clojure-norway (4)
- # clojure-uk (25)
- # core-async (1)
- # cursive (24)
- # datomic (33)
- # emacs (15)
- # events (2)
- # fulcro (4)
- # girouette (1)
- # google-cloud (2)
- # graphql (14)
- # honeysql (15)
- # instaparse (1)
- # jobs (2)
- # jobs-discuss (2)
- # meander (18)
- # off-topic (100)
- # pathom (48)
- # pedestal (2)
- # polylith (5)
- # practicalli (4)
- # reveal (8)
- # shadow-cljs (3)
- # spacemacs (12)
- # sql (23)
- # tools-deps (1)
- # uncomplicate (1)
- # vim (21)
- # xtdb (19)
somehow I rediscovered hs-minor-mode
recently and am enjoying code-folding in emacs greatly. It works amazingly well in Clojure, Python, R and probably other languages I have yet to try 🙂

Thanks for sharing! I didn't know about this but it looks handy! Definitely gonna give it a try
I have a little setup that always folds the ns
form by default
For the rest of the form personally I never use folding. IMO the need can reveal other issues (e.g. ns size)
I have a few colleagues that have 10,000 line python files per project. I find it useful for those and also for perusing lengthier codebases
sure, I don't question code-folding :) I simply reflected my views for greenfield clojure development
curious, does emacs handle a 10kLOC file gracefully? I'd imagine the AST parsing could slow down things
i use this to collapse comment blocks sometimes:
(add-hook 'clojure-mode-hook
(lambda ()
(hs-minor-mode)
(setq hs-hide-comments-when-hiding-all nil)
(setq hs-block-start-regexp "\\s(comment")))
Hi, I have modified my test source directory to test/src
instead of test
. My objective was to be able to add some test/resources
.... and so on. The issue I have is with projectile which projectile-between-implementation-and-test
is still trying to create test file directly to test
and not test/src
. Is there a way to fix that? I don't find reference to that, it that a so bad practise to set directories like that?
Hmm I don't see an option to customize that (might have overlooked it), maybe you can try overriding the following function in your config:
(defun projectile-test-directory (project-type)
"Find default test directory based on PROJECT-TYPE."
(projectile-project-type-attribute project-type 'test-dir "test/"))