boon icon indicating copy to clipboard operation
boon copied to clipboard

Warning: defcustom for ‘boon-command-cursor-type’

Open dxlr8r opened this issue 6 years ago • 4 comments

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).

dxlr8r avatar Nov 06 '19 21:11 dxlr8r

I fixed the warning in the last commit. As for your other questions:

  1. make sure boon-set-command-state is bound to the key that you want to use to go back to CMD state.
  2. Meta are not covered. These are usually bound to commands which are best served by native 'boon' operations
  3. 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.

jyp avatar Nov 07 '19 14:11 jyp

I fixed the warning in the last commit.

Awesome.

  1. 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.
  2. ok, I see M-x is on "x" when in CMD mode.
  3. 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.

dxlr8r avatar Nov 07 '19 20:11 dxlr8r

  1. 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.

jyp avatar Nov 12 '19 08:11 jyp

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.

dxlr8r avatar Mar 17 '20 11:03 dxlr8r