Skip to content

Commit

Permalink
Use add-hook for eldoc-documentation-functions
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Aug 26, 2023
1 parent b6e5c6c commit ba42e33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lisp/init-flymake.el
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ba42e33

Please sign in to comment.