Skip to content

Commit

Permalink
Add hover-global-minor-mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Feb 7, 2022
1 parent 2b82673 commit f172a01
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The following example uses **all available** configurations above, you can custo
hover-screenshot-prefix "my-prefix-"
hover-observatory-uri "http://my-custom-host:50300"
hover-clear-buffer-on-hot-restart t))
(hover-minor-mode 1))
(hover-global-minor-mode t))
```

_Thanks to [flutter.el](https://github.com/amake/flutter.el) which inspired this project._
10 changes: 10 additions & 0 deletions hover.el
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,15 @@ args."
:keymap hover-minor-mode-map
:group 'hover)

(defun hover-turn-on-hover-minor-mode ()
"Turn on `hover-minor-mode'."
(hover-minor-mode t))

;;;###autoload
(define-globalized-minor-mode hover-global-minor-mode
hover-minor-mode hover-turn-on-hover-minor-mode
:group 'hover
:require 'hover-minor-mode)

(provide 'hover)
;;; hover.el ends here

0 comments on commit f172a01

Please sign in to comment.