Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special handling for C-g keyboard-quit #12

Open
dpassen opened this issue Jun 27, 2023 · 1 comment
Open

Special handling for C-g keyboard-quit #12

dpassen opened this issue Jun 27, 2023 · 1 comment

Comments

@dpassen
Copy link

dpassen commented Jun 27, 2023

When using devil-mode, I can use C-g to interrupt a command key sequence. For example, , x p C-g will abandon the projectile command I was going to use before I changed my mind. But I can not use , x p , g even though , g maps to C-g. Obviously, I can continue to use C-g but is there a more 'devilish' way to do so?

@corytertel
Copy link
Contributor

I believe a good solution would be to have a glob for translations. That way sequences like (cons "%* %k g" "C-g") in devil-translations will make it so that every time you press g in the middle of a devil key sequence the sequence will be interrupted.

Another solution could be to add a devil-escape-key so that way every time a key like g is hit, the sequence dies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants