Skip to content

Commit

Permalink
Add global-hover-minor-mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Jan 30, 2022
1 parent 2b82673 commit 9bef1df
Show file tree
Hide file tree
Showing 2 changed files with 12 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))
(global-hover-minor-mode t))
```

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

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

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

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

0 comments on commit 9bef1df

Please sign in to comment.