purcell / envrc

Emacs support for direnv which operates buffer-locally
378 stars 35 forks source link

Overriding ledger-toggle-current-transaction key binding #4

Closed DamienCassou closed 4 years ago

DamienCassou commented 4 years ago

How dare you override a ledger-mode binding?? Your own baby...

You may close the issue :-D.

purcell commented 4 years ago

LOL :-)

Yeah, hard to find a good place to put bindings. I might switch this to a prefix map so the user could change the prefix, but the code is usually a little more fiddly then...

DamienCassou commented 4 years ago

What about giving the user a chance to deactivate envrc keymap? I'm not modifying my direnvs much so I don't plan to reload often.

purcell commented 4 years ago

Probably users could just set or customize envrc-mode-map to nil or an empty map to achieve this?

DamienCassou commented 4 years ago

Yes, maybe this is good enough.

I did

(unbind-key "C-c C-e" envrc-mode-map)