This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-07
Channels
- # bangalore-clj (2)
- # beginners (53)
- # boot (30)
- # cider (27)
- # clara (1)
- # cljs-dev (18)
- # cljsrn (16)
- # clojure (153)
- # clojure-brasil (1)
- # clojure-dusseldorf (5)
- # clojure-italy (20)
- # clojure-losangeles (3)
- # clojure-spec (4)
- # clojure-uk (177)
- # clojurescript (115)
- # component (4)
- # core-logic (1)
- # datomic (29)
- # emacs (9)
- # figwheel (2)
- # gorilla (1)
- # graphql (36)
- # hoplon (4)
- # jobs (1)
- # jobs-discuss (3)
- # juxt (2)
- # keechma (22)
- # lumo (4)
- # off-topic (1)
- # onyx (17)
- # parinfer (96)
- # protorepl (10)
- # re-frame (31)
- # reagent (14)
- # ring-swagger (17)
- # spacemacs (32)
@claudiu That only happins in cljc files right? You can switch from clojure-mode to clojurescript-mode and then it will show the active code higlighted
@mitchelkuijpers Think so (most of my code is in cljc), computer restarted and I can't reproduce it anymore. But it's was different from when I switch modes. It lost syntax colors and just a bold neon green. Strange one 🙂
(evil-define-operator emidln//generic-evil-eval-operator (beg end) (emidln//generic-eval-region beg end))
then set that to some keybinding (evil-leader/set-key "meo" 'emidln//generic-evil-eval-operator)
(maybe you use something quicker to type than , m e o
but I rebound all of the common stuff in terms of my generic eval already so that I don't use it too often)
@bja Cool, thanks! I've never looked into defining my own operators or text objects, but that looks fairly reasonable. Two questions:
- What's emidln
, and why the double slash //
?
- What do you mean in that sentence by "compose your selections"?
Say your mark is at ^
in the following:
(comment
^
(require 'clojure.pprint)
(clojure.pprint/pprint {:foo :bar, :spam :eggs})
)
SPC m e o 2 }
would eval the next two 'graphsOK, great, that makes sense. The way you phrased it made me think possibly you were using it differently, but what you just said matches my mental model.
I only used SPC m e o
to match the usual spacemacs language modes, if it's something you use a ton, I'd bind it to something less verbose
For sure. It'd be nice to bind it to a single keystroke, to make it parallel with eg d
or y
.
but I bind C-c C-c
to eval the current graph or visually selected region and with C-c C-b
to eval the buffer that covers like 98% of my eval needs
since I tend to just enter visual mode, do a motion, verify it's what I want to eval, and then eval it
in that it's clearly Vim derivative (maybe not the codebase), but is seeking improvements and internal consistency over strict adherence to its ancestor
hi there! I use "default" scheme for emacs in spacemacs. everything is fine except colors in powerline. how to change colors in dark areas? (see screenshot)
@ag yeah, osx.