guru-mode icon indicating copy to clipboard operation
guru-mode copied to clipboard

How to remove some warnings?

Open amty opened this issue 5 years ago • 5 comments

It would be nice to have a way to remove some of the affected keys from a guru list. For example, I like the idea to teach myself to not use Home/End/PgUp/PgDn, because this keys are missing from or in weird locations on laptop keyboards, but I see no reason to unlearn arrow keys, because I use them in any case for moving between windows by S- keybindings. But if I tried to ignore some of guru's warnings, it would lead to ignoring all of them.

I've removed offending keys for now by editing guru sources, but it would be nice to do it 'properly' from init.el.

amty avatar Nov 06 '20 23:11 amty

You can simply modify guru-affected-bindings-list.

bbatsov avatar Nov 08 '20 08:11 bbatsov

You mean do something like (setq guru-affected-bindings-list (seq-filter ... guru-affected-bindings-list)) in init.el? It doesn't work.

amty avatar Nov 08 '20 08:11 amty

Yep, but you you need to do it before enabling guru-mode, as this var is used by its guru-init function.

bbatsov avatar Nov 08 '20 10:11 bbatsov

I tried at first, but have found that guru-affected-bindings-list was unbound.

amty avatar Nov 08 '20 10:11 amty

Can you paste here how you structured the configuration exactly?

bbatsov avatar Nov 08 '20 14:11 bbatsov