2019-02-22 00:20:29 -05:00
|
|
|
;;; tools/flycheck/autoload.el -*- lexical-binding: t; -*-
|
2018-05-07 18:50:44 +02:00
|
|
|
|
2019-02-26 18:25:52 -05:00
|
|
|
;;;###autoload
|
2019-07-22 23:31:52 +02:00
|
|
|
(defun +flycheck-init-popups-h ()
|
2019-02-28 05:01:04 -05:00
|
|
|
"Activate `flycheck-posframe-mode' if available and in GUI Emacs.
|
|
|
|
Activate `flycheck-popup-tip-mode' otherwise.
|
|
|
|
Do nothing if `lsp-ui-mode' is active and `lsp-ui-sideline-enable' is non-nil."
|
|
|
|
(unless (and (bound-and-true-p lsp-ui-mode)
|
|
|
|
lsp-ui-sideline-enable)
|
|
|
|
(if (and (fboundp 'flycheck-posframe-mode)
|
|
|
|
(display-graphic-p))
|
|
|
|
(flycheck-posframe-mode +1)
|
|
|
|
(flycheck-popup-tip-mode +1))))
|