Skip to content

Commit f172a01

Browse files
committed
Add hover-global-minor-mode.
1 parent 2b82673 commit f172a01

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The following example uses **all available** configurations above, you can custo
6161
hover-screenshot-prefix "my-prefix-"
6262
hover-observatory-uri "http://my-custom-host:50300"
6363
hover-clear-buffer-on-hot-restart t))
64-
(hover-minor-mode 1))
64+
(hover-global-minor-mode t))
6565
```
6666

6767
_Thanks to [flutter.el](https://github.com/amake/flutter.el) which inspired this project._

hover.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,5 +294,15 @@ args."
294294
:keymap hover-minor-mode-map
295295
:group 'hover)
296296

297+
(defun hover-turn-on-hover-minor-mode ()
298+
"Turn on `hover-minor-mode'."
299+
(hover-minor-mode t))
300+
301+
;;;###autoload
302+
(define-globalized-minor-mode hover-global-minor-mode
303+
hover-minor-mode hover-turn-on-hover-minor-mode
304+
:group 'hover
305+
:require 'hover-minor-mode)
306+
297307
(provide 'hover)
298308
;;; hover.el ends here

0 commit comments

Comments
 (0)