larstvei / Focus

Dim the font color of text in surrounding paragraphs
470 stars 14 forks source link

Read-only-mode doesn't work with evil #16

Closed NightMachinery closed 5 years ago

NightMachinery commented 6 years ago

Read-only-mode doesn't work with evil.

larstvei commented 6 years ago

Ok.

I don't use evil. Could you elaborate? What would make it better?

NightMachinery commented 6 years ago

The problem is with the key bindings, evil overrides them. Perhaps expose a function that sets all the keys again? Then we can call that after evil has loaded🤔

larstvei commented 6 years ago

Ok, I see.

I would think the key bindings are less useful for evil-users, as you already have modifier-free ways of moving about in the buffer?

Perhaps this is useful? If I've understood it correctly, then the following snippet will give focus-read-only-mode control over the key bindings.

(evil-set-initial-state 'focus-read-only-mode 'emacs)

Let me know if it works.

larstvei commented 5 years ago

I'm closing this due to inactivity.