Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround eldoc showing information in the mode-line #38

Merged
merged 1 commit into from
May 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion nano-modeline.el
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,14 @@ below or a buffer local variable 'no-mode-line'."
;; -> see https://github.com/rougier/nano-modeline/issues/24
;; (add-hook 'window-configuration-change-hook #'nano-modeline-update-windows)

(force-mode-line-update t))
(force-mode-line-update t)

;; `eldoc-minibuffer-message' changes `mode-line-format' but
;; nano-modeline when `nano-modeline-position' is `top' only displays
;; the header-line.
;; -> see https://github.com/rougier/nano-modeline/issues/36
(when (eq nano-modeline-position 'top)
(setq eldoc-message-function #'message)))

(defun nano-modeline-mode--inactivate ()
"Inactivate nano mode line and restored default mode-line"
Expand Down