diff --git a/lisp/init-flymake.el b/lisp/init-flymake.el index 4d76afdd17..91ab8c053b 100644 --- a/lisp/init-flymake.el +++ b/lisp/init-flymake.el @@ -33,9 +33,7 @@ (add-hook 'flymake-mode-hook (lambda () - (setq eldoc-documentation-functions - (cons 'flymake-eldoc-function - (delq 'flymake-eldoc-function eldoc-documentation-functions)))))) + (add-hook 'eldoc-documentation-functions 'flymake-eldoc-function nil t)))) (provide 'init-flymake) ;;; init-flymake.el ends here