From 4dcd6644c7aee2565dd32c1f65e2d1fa4432ceb8 Mon Sep 17 00:00:00 2001 From: stardiviner Date: Sun, 16 Feb 2020 13:46:24 +0800 Subject: [PATCH] make eldoc-overlay-mode as a global minor-mode with out hook on eldoc-mode --- README.md | 2 +- eldoc-overlay.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf84a0a..5964b89 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ option. ```emacs-lisp (use-package eldoc-overlay :ensure t - :hook (eldoc-mode . eldoc-overlay-mode)) + :init (eldoc-overlay-mode)) ``` # Usage diff --git a/eldoc-overlay.el b/eldoc-overlay.el index ed6f5f4..10db1a2 100644 --- a/eldoc-overlay.el +++ b/eldoc-overlay.el @@ -98,7 +98,7 @@ Two backends are supported: `inline-docs' and `quick-peek'.") :require 'eldoc-overlay-mode :group 'eldoc-overlay :init-value nil - :global nil + :global t :lighter " ElDoc/overlay" (if eldoc-overlay-mode (eldoc-overlay-enable) -- 2.11.4.GIT