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

About C-g, ESC and restoring the default cursor-type when exiting boon-mode from INSERT mode #134

Open
Ikuyu opened this issue Apr 6, 2023 · 2 comments

Comments

@Ikuyu
Copy link

Ikuyu commented Apr 6, 2023

Great package. Keep up the good work!

I have two question though:

  1. How can I use C-g to leave INSERT mode without affecting the global use of C-g?
  2. How can I revert the ESC key to its default behaviour?

Obviously I don't want to use ESC but C-g to leave INSERT mode.

Below is probably a bug that I'd like to see fixed:

If one is in INSERT mode and executes 'boon-mode' using M-x, the cursor-type is not restored to my global setting:

(setq-default cursor-type 'box).

@jyp
Copy link
Owner

jyp commented Apr 6, 2023 via email

@Ikuyu
Copy link
Author

Ikuyu commented Apr 6, 2023

After trying a bit, this works:

(use-package boon
:config
(require 'boon-qwerty)
(require 'boon-powerline)
(boon-powerline-theme)
:bind
(:map boon-insert-map
("C-g" . (lambda ()
(interactive)
(setq boon-command-state t))))
(:map boon-special-map
("C-g" . (lambda ()
(interactive)
(setq boon-command-state t)))))

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