hyperbole icon indicating copy to clipboard operation
hyperbole copied to clipboard

When hyperbole-mode is re-enabled, kotl-mode is not loaded

Open 101scholar opened this issue 1 year ago • 3 comments

If I config hyperbole the following way

(use-package hyperbole
  :custom
  (hyperbole-mode nil))

Then when I manually enable hyperbole-mode by M-x, functions like kotl-mode is not loaded.

101scholar avatar Jan 26 '24 05:01 101scholar

A quick fix is

(use-package hyperbole
  :config
  (hyperbole-mode -1)
  (hyperb:init))

But I think it is a bug to require user to explicitly call (hyperb:init).

Moreover, the reason that I want to disable hyperbole-mode is that this minor-mode's keymap conflicts with my global keymap. So is it possible that this package provide a customized prefix for hyperbole-mode-map? Currently, there's no such prefix and it is easy to conflict with user's own key bindings.

101scholar avatar Jan 26 '24 12:01 101scholar

You should be able to rebind C-h h to your own keymap as you normally would, after initializing Hyperbole.-- rsw

On Jan 26, 2024, at 7:09 AM, 101scholar @.***> wrote:

A quick fix is (use-package hyperbole :config (hyperbole-mode -1) (hyperb:init)) But I think it is a bug to require user to explicitly call (hyperb:init). Moreover, the reason that I want to disable hyperbole-mode is that this minor-mode's keymap conflicts with my global keymap. So is it possible that this package provide a customized prefix for hyperbole-mode-map? Currently, there's no such prefix and it is easy to conflict with user's own key bindings.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

rswgnu avatar Jan 26 '24 12:01 rswgnu

I mean for example currently the package binds M-o to hkey-operate in hyperbole-mode-map, it's better to add some customized prefix so that it won't mess up keybinding of other packages.

101scholar avatar Jan 26 '24 12:01 101scholar

M-o is bound by Hyperbole only if it has the default global Emacs binding of 'facemenu-keymap' or if it has not been bound to something else by the user. So just set your personal binding before initializing Hyperbole and you should be fine.

rswgnu avatar Feb 18 '24 03:02 rswgnu

101scholar wrote:

If I config hyperbole the following way

(use-package hyperbole
  :custom
  (hyperbole-mode nil))

Then when I manually enable hyperbole-mode by M-x, functions like kotl-mode is not loaded.

This is something that should be resolved if you are running the Hyperbole pre-release V8.0.1pre from the elpa-devel archive. You can see code to fix it at the bottom of hyperbole.el.

rswgnu avatar Feb 18 '24 03:02 rswgnu