This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-05
Channels
- # adventofcode (419)
- # aleph (8)
- # aws (6)
- # beginners (148)
- # boot (9)
- # cider (24)
- # cljs-dev (37)
- # cljsjs (8)
- # clojure (134)
- # clojure-android (6)
- # clojure-brasil (15)
- # clojure-dev (8)
- # clojure-dusseldorf (2)
- # clojure-greece (67)
- # clojure-italy (8)
- # clojure-japan (3)
- # clojure-russia (3)
- # clojure-spec (8)
- # clojure-uk (13)
- # clojurescript (54)
- # clojurex (6)
- # cursive (5)
- # data-science (12)
- # datomic (15)
- # defnpodcast (11)
- # emacs (25)
- # fulcro (95)
- # graphql (3)
- # lein-figwheel (1)
- # leiningen (27)
- # luminus (1)
- # lumo (6)
- # mount (2)
- # off-topic (112)
- # om (3)
- # onyx (24)
- # perun (3)
- # re-frame (20)
- # reagent (1)
- # reitit (2)
- # ring-swagger (13)
- # rum (10)
- # shadow-cljs (45)
- # spacemacs (24)
- # sql (2)
- # unrepl (78)
- # yada (1)
Hi, is there a way to have such layout in Emacs:
+--+---+---+
|1 | 2 | 3 |
+--+---+---+
or (when corresponding files are opened):
+--+---+---+
| | 2 | 3 |
|1 >---+---+
| | 4 | 5 |
+--+---+---+
Where:
1 is project files tree window;
2 is CLJ or Elisp files window;
3 is REPL or bash shell window;
4 is CLJ tests, Markdown files window;
5 is exceptions window?
I tried to use purpose-mode for that but it doesn't work consistently (from time to time buffers are opened in random windows and frames are additionally split without any reason).1 you can get with neotree
@bostonaholic neotree is good indeed. that's what I'm using currently.
I wrote a package called resize-window to make window management easier. I can't use emacs without it now
(fwiw) In your readme you mention using overlays for emphasizing the selected buffer… Here’s a rough implementation where I’m using face remapping in the unselected buffers instead. The remapped faces are computed to be “dimmer” than the actual theme but otherwise matching the themes hues. Alpha quality, barely tested. https://github.com/gonewest818/dimmer.el
nice. that's what i want to do but i wasn't sure how to get a list of all visible buffers so i just went with the current buffer
I was thinking something like (mapcar 'window-buffer (window-list))
and then check and remove duplicates. But what I’ve got seems snappy enough even though it’s doing unnecessary work on the offscreen buffers.
… correction, I’ve got reports of sluggishness so I’m doing some profiling. I did say “alpha quality, barely tested” didn’t I?
thanks @dpsutton!
Why doc
can't be used in CIDER repl? I used it all the time in clojure-inf repl.
> (doc type)
CompilerException java.lang.RuntimeException: Unable to resolve symbol: doc in this context, compiling:(*cider-repl
that works but is slower than (doc type)
in lein repl
in terminal
(clojure.repl/doc clojure.repl/doc)
-------------------------
clojure.repl/doc
([name])
Macro
Prints documentation for a var or special form given its name
(use 'clojure.repl)
nil
breeze.jib.server.core> (doc doc)
-------------------------
clojure.repl/doc
([name])
Macro
Prints documentation for a var or special form given its name
Restarted repl and now it's as fast as in terminal (had a lot of text in that buffer). Thank you, @dpsutton, again!
@ghsgd2 M-x cider-repl-clear-buffer
can help when your cider buffer gets too long for emacs to handle
also, hit ,
in the repl for some options. one of which is clear. also refresh and some other goodies