Fork me on GitHub
#emacs
<
2018-01-20
>
vemv07:01:30

what's a recommended way to jump at 'word' level within Clojure buffers? e.g. in hello-my-friend, if cursor if at h, I may want to jump to m and then to f currently I only have a way to jump across whole tokens, i.e. from h to d

richiardiandrea18:01:10

subword mode iirc works very well for this with standard forward word

vemv19:01:41

good pointer, you made me realise that plain forward-word/`backward-word` don't deal with FooBarBaz (only with foo-bar-baz) unless subword-mode is enabled

qqq07:01:05

evil-forward-word

qqq07:01:33

or 'avy' for jumping word to anywhere in screen

vemv08:01:21

avy seems rather nuclear for what I want ๐Ÿ™‚

vemv08:01:06

evil-f-w may be a choice, although I don't use evil. could bloat my dependencies

vemv08:01:43

backward-word / forward-word seem good enough, hadn't bothered searching in good old M-x (especially with the smex improvement)

vemv09:01:28

but I get little dots $s, etc, don't want those

vemv09:01:57

I looked at various configs, including prelude. still not clear how to disable them

bozhidar09:01:17

(setq whitespace-style '(face lines-tail))

vemv09:01:53

exactly what I had tried ๐Ÿ˜ž

bozhidar09:01:50

Did you evaluate this?

bozhidar09:01:10

I read the docs now and Iโ€™m pretty certain this is correct.

vemv09:01:29

yes, eval'd

bozhidar09:01:29

(plus I wrote this blog post and thatโ€™s my config) ๐Ÿ˜„

vemv09:01:00

yes ๐Ÿ™‚ made sure to reproduce the prelude config

vemv09:01:10

says about face: > Enable all visualizations which use special faces. This element has a special meaning: if it is absent from the list, none of the other visualizations take effect except space-mark, tab-mark, and newline-mark. the "except" calls my attention. it's as if they were mandatory

bozhidar09:01:04

You should start with face and then just list what you want visualized.

vemv09:01:26

debugged the issue

vemv09:01:35

the setq doesn't have an immediate effect

vemv09:01:52

for it to be applied, I have to M-x whitespace-mode twice

vemv10:01:25

thanks for the hints!