This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-13
Channels
- # bangalore-clj (1)
- # beginners (40)
- # boot (22)
- # clara (19)
- # cljs-dev (265)
- # clojure (160)
- # clojure-dev (6)
- # clojure-italy (5)
- # clojure-russia (47)
- # clojure-spec (10)
- # clojure-uk (63)
- # clojurescript (88)
- # core-async (8)
- # cursive (54)
- # datomic (48)
- # emacs (32)
- # garden (3)
- # graphql (29)
- # hoplon (54)
- # jobs (1)
- # klipse (4)
- # luminus (5)
- # lumo (21)
- # mount (5)
- # off-topic (16)
- # om (2)
- # pedestal (10)
- # play-clj (1)
- # portkey (32)
- # re-frame (21)
- # reagent (48)
- # rum (1)
- # spacemacs (4)
- # sql (3)
- # unrepl (5)
I saw a screenshot of some clojure today that had a colored font-face for names in let forms: https://twitter.com/ra/status/885525643315859457 Does anyone have a set up like this in Emacs?
...since I'm waiting for a build to finish and otherwise curious, I took a look at clojure-mode to see how the font-locking is done
there is this https://github.com/clojure-emacs/clojure-mode/blob/master/clojure-mode-extra-font-locking.el
in case it might help
Does anyone know if there is a way to indent Hiccup vectors? Like this?
[:div
"foo"
"bar"]
ATM, my emacs config is aligning them like regular vectors, like so.
[:div
"foo"
"bar"]
first it would have to detect that they are Hiccup vectors
which might not be so easy
mm to me it gets indented like that
[:div "foo"
"bar"]
if that's what you mean
[:ul {:class "nav navbar-nav"}
[:li (hiccup.element/link-to "/Conditions" "Conditions")]
[:li (hiccup.element/link-to "/Rules" "Rules")]
[:li (hiccup.element/link-to "/Rules/Differences" "Rules Matrix Diff")]
[:li (hiccup.element/link-to "/TooLong" "Too Long")]
[:li (hiccup.element/link-to "/Mappings" "Slang")]]
Yea, I guess its fine. leaving the indents as normal.
this might not exist, but is there a way in Emacs to have a buffer that has the contents of both file1 and file2? So the contents are one after the other like
file1 text...
file1 text...
----
file2 text...
you can move your cursor throughout the buffer and if you save the buffer while your cursor is in the top section, file1 is saved, if it's in the bottom file2 is saved.the functionality is similar to Indirect Buffers (https://www.gnu.org/software/emacs/manual/html_node/emacs/Indirect-Buffers.html#Indirect-Buffers) but not quite the same