Warning: defcustom for ‘boon-command-cursor-type’
When installing boon with emacs 26.3 I get:
...
Compiling file /Users/simeny/.emacs.d/elpa/boon-20191104.1313/boon-core.el at Wed Nov 6 22:46:15 2019
boon-core.el:60:1:Warning: defcustom for ‘boon-command-cursor-type’ fails to
specify type
boon-core.el:60:1:Warning: defcustom for ‘boon-command-cursor-type’ fails to
specify type
boon-core.el:61:1:Warning: defcustom for ‘boon-insert-cursor-type’ fails to
specify type
boon-core.el:61:1:Warning: defcustom for ‘boon-insert-cursor-type’ fails to
specify type
^L
...
I'm also unable to drop back into CMD mode after going to INS, might be related.
Also wondering how to handle modality and Meta commands? I see you have C-x and C-c covered, but couldn't see anything about M, or about how to do C-c x (where x is a letter without C).
I fixed the warning in the last commit. As for your other questions:
- make sure
boon-set-command-stateis bound to the key that you want to use to go back to CMD state. - Meta are not covered. These are usually bound to commands which are best served by native 'boon' operations
- You can use "c C-x" for "C-c x". But these keybindings are in fact reserved for the user as per emacs guidelines. So don't use them :) One idea is to use backslash (or backspace or return, etc.) as a leader key for those.
I fixed the warning in the last commit.
Awesome.
- unless I'm mistaken, this is by default set to the escape key? I might end up using a different key, but kinda curious for why escape didn't work.
- ok, I see M-x is on "x" when in CMD mode.
- what about "v"? I know that is used for going into INS mode, but I thought, perhaps, it made more sense to use the CMD mode key as a toggle.
- Probably due to something in your configuration?
point 3. Feel free to rebind keys as you see fit. This is emacs after all :) Boon is quite stable so breakage of any such config is unlikely.
On the subject of why the escape key doesn't work.
At the moment I'm running macOS, and the only place it seems to work is the official emacs.app (GUI), but it doesn't work in any of the three terminals (Alacritty, iTerm, Terminal) I tested.
This works however:
(global-set-key (kbd "<f9>") 'boon-set-command-state)
But I'd rather do this, which doesn't work:
(custom-set-variables
'(boon-quit-key [f9])
'(boon-mode t))
Also seems like boon-mode t doesn't work, with emacs.app, which I'm able to go into CMD mode again with escape, pressing escape again doesn't jump back into CMD mode.