I have mark-even-if-inactive
set to t
in my init.el
; I've found that I that so (interative "r")
works as expected; if that variable is nil
, I get "The mark is not active now" when I try to run my interactive commands.
I can use Customize to set that variable -- but I'm also using Hyperbole, and when hyperbole-mode is loaded, it explicitly sets that variable to nil
:
(defun hyperbole--enable-mode ()
"Enable Hyperbole global minor mode."
;; Store the current value and set `mark-even-if-inactive' to nil so
;; can select delimited things if the region is not active when
;; hyperbole-mode is enabled.
(setq hyperbole--mark-even-if-inactive mark-even-if-inactive
mark-even-if-inactive nil)
; etc etc
When I later manually set mark-even-if-inactive
to t
, things seem fine, so I'd like to override that behavior of hyperbole--enable-mode
. What's a good way to do that?
hyperbole.el
, but I'm curious to know if there's a more elegant or idiomatic way.hyperbole-mode-hook
. That would avoid the need to fork Hyperbole, but whether it's elegant or not is in the eye of the beholder. Personally, I would rather fork Hyperbole, but that's just me. The best way however might be to ask the question in the upstream Hyperbole repo (assuming that there is one somewhere): if it gets changed there, then you don't have to worry about it ever again.