mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Fix eldoc in minibuffer.
This commit is contained in:
parent
aee92fa496
commit
0509ac47f4
1 changed files with 1 additions and 2 deletions
|
@ -250,7 +250,6 @@ If STRICT-P, return nil if no project was found, otherwise return
|
||||||
;; Show eldoc in the mode-line with `eval-expression'
|
;; Show eldoc in the mode-line with `eval-expression'
|
||||||
(defun doom-modeline--show-eldoc (input)
|
(defun doom-modeline--show-eldoc (input)
|
||||||
"Display string STR in the mode-line next to minibuffer."
|
"Display string STR in the mode-line next to minibuffer."
|
||||||
(eldoc-in-minibuffer-mode +1)
|
|
||||||
(with-current-buffer (eldoc-current-buffer)
|
(with-current-buffer (eldoc-current-buffer)
|
||||||
(let* ((str (and (stringp input) input))
|
(let* ((str (and (stringp input) input))
|
||||||
(mode-line-format (or (and str (or (doom-modeline-eldoc str) str))
|
(mode-line-format (or (and str (or (doom-modeline-eldoc str) str))
|
||||||
|
@ -260,7 +259,7 @@ If STRICT-P, return nil if no project was found, otherwise return
|
||||||
(sit-for eldoc-show-in-mode-line-delay))))
|
(sit-for eldoc-show-in-mode-line-delay))))
|
||||||
(setq eldoc-in-minibuffer-show-fn #'doom-modeline--show-eldoc)
|
(setq eldoc-in-minibuffer-show-fn #'doom-modeline--show-eldoc)
|
||||||
|
|
||||||
;; (eldoc-in-minibuffer-mode +1)
|
(eldoc-in-minibuffer-mode +1)
|
||||||
|
|
||||||
|
|
||||||
;; anzu and evil-anzu expose current/total state that can be displayed in the
|
;; anzu and evil-anzu expose current/total state that can be displayed in the
|
||||||
|
|
Loading…
Reference in a new issue