This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-19
Channels
- # admin-announcements (1)
- # asami (9)
- # aws (46)
- # beginners (117)
- # calva (9)
- # cider (48)
- # clj-kondo (27)
- # cljdoc (6)
- # clojure (41)
- # clojure-australia (2)
- # clojure-europe (22)
- # clojure-nl (3)
- # clojure-spec (3)
- # clojure-uk (26)
- # clojurescript (57)
- # code-reviews (25)
- # cursive (9)
- # data-science (2)
- # datomic (31)
- # events (1)
- # expound (24)
- # figwheel-main (8)
- # fulcro (38)
- # graalvm (40)
- # helix (6)
- # jackdaw (4)
- # java (5)
- # jobs (1)
- # kaocha (7)
- # kekkonen (1)
- # meander (65)
- # off-topic (67)
- # pathom (4)
- # reagent (9)
- # reitit (8)
- # remote-jobs (3)
- # ring (2)
- # shadow-cljs (24)
- # spacemacs (13)
- # timbre (2)
- # tools-deps (4)
in emacs / prelude / cider, what is the thing called that gives a visual effect on the line I'm typing when I press enter?
FYI if you want to keep the beacon package for some things, beacon-mode
should toggle it, its just a minor mode.
Ironically I just started using it with Spacemacs, I quite like it... maybe I just havent used it long enough to get bored with it 🙂
@borkdude Can you show me the visual effect as I don't remember anything that's triggered on enter.
@bozhidar It might be an effect of zenburn, I'm not sure how I can replicate this...
when I disable global-hl-line-mode
then it goes away, but it isn't the same as hl-line-mode
Hmm, I trying this now on the latest Prelude but I don't see any effect when I press Return.
@bozhidar There I have it, after calling cider-connect and hitting return in the REPL.
I have a similar effect called beacon, it might be that https://elpa.gnu.org/packages/beacon.html
Normally there should be an animation only for bigger movements in the buffer, though. Guess that's some bug in beacon.
I want to disable hl-line-mode in vterm. How can I do that?
(add-hook
'vterm-mode-hook
(lambda()
(setq hl-line-mode nil) ;; hmm..?
(setq show-trailing-whitespace nil)))
* Enable `nlinum-mode` by default. Can be disabled by setting `prelude-minimalistic-ui` to `nil`.
The var needs to be set before the UI is initialized otherwise some UI elements would briefly appear and then disappear.
@bozhidar what is used for highlighting the current line in a buffer and how do I turn this off for vterm only? I have a half-assed attempt a couple of lines up
global-hl-line-mode
. I you think you can just add a hook for vterm that looks like (lambda () (hl-line-mode -1))
.
Haven't used vterm
, but it guess it defines a major mode named vterm-mode
or something like this can you can hook into.
that's true. I found vterm using a couple of searches as one of the best alternatives to ansi-term, etc
vterm is what people using Spacemacs have been recommending for a while, looks very good.
So, I've heard, but I was always too lazy to set it up. I did it just now and it looks pretty nice indeed.
I tried this, but even in the buffer where I'm executing (hl-line-mode -1)
the current line stays highlighted
I found this code on stackoverflow. It works:
(global-hl-line-mode)
(make-variable-buffer-local 'global-hl-line-mode)
(add-hook 'some-mode-hook (lambda () (setq global-hl-line-mode nil)))
(add-hook
'vterm-mode-hook
(lambda()
(setq global-hl-line-mode nil)
(setq show-trailing-whitespace nil)))
The only unsatisfying thing about this is that I don't know why one has to do it like this.That's weird. I can reproduce it for every buffer, so it's not something to do with vterm. Seems something is off in hl-line-mode
as normally the non-global version of the mode should work just fine within one buffer to disable/enable it.
You wrote a blog about it and you didn't even tell me? https://emacsredux.com/blog/2020/11/21/disable-global-hl-line-mode-for-specific-modes/ Thanks!
I often get inspired to write blog posts from random conversations. And I'm very forgetful! 😄
hi! I'm tackling this: https://github.com/clojure-emacs/cider/issues/2901
the remaining problem is that cider-font-lock-as-clojure
doesn't work well with mixed Clojure code and ANSI color codes. cider-ansi-color-string-p
(which is used in cider-font-lock-as
) only applies the color codes if the string starts with a color code (e.g. "\033[33mHello\033[0m"
). in matcher-combinators we have "(mismatch \033[33mHello\033[0m)"
etc. what's the best solution here? is always running ansi-color-apply
on the font-locked Clojure code acceptable for test reports?
> is always running ansi-color-apply on the font-locked Clojure code acceptable for test reports?
yep, adjusting the predicate method is what I meant :)
I’ll open a PR soon-ish then
here's the one for cider-nrepl
: https://github.com/clojure-emacs/cider-nrepl/pull/683, unrelated to the coloring issue.
I'm not sure how to test it, though. my first idea was to add a cider.nrepl.middleware.test-custom-print
ns with a failing test containing custom print logic, filtering it out with :test-selectors
, and then calling it with session/message
to run the assertions. does that sound good?