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
|
|
|
|
(defun +flycheck*popup-tip-delete-popup (orig-fn)
|
2018-05-07 18:50:44 +02:00
|
|
|
"TODO"
|
|
|
|
(when (display-graphic-p)
|
2019-02-26 18:25:52 -05:00
|
|
|
(funcall orig-fn)))
|
2018-05-07 18:50:44 +02:00
|
|
|
|
|
|
|
;;;###autoload
|
2019-02-26 18:25:52 -05:00
|
|
|
(defun +flycheck*popup-tip-show-popup (orig-fn errors)
|
2018-05-07 18:50:44 +02:00
|
|
|
"TODO"
|
2019-02-26 18:25:52 -05:00
|
|
|
(if (and EMACS26+
|
|
|
|
(featurep 'flycheck-posframe)
|
|
|
|
(display-graphic-p))
|
|
|
|
(flycheck-posframe-show-posframe errors)
|
|
|
|
(funcall orig-fn errors)))
|
2019-02-24 13:52:36 -05:00
|
|
|
|
|
|
|
;;;###autoload
|
2019-02-26 18:25:52 -05:00
|
|
|
(defun +flycheck|disable-popup-tip-for-lsp ()
|
2019-02-24 13:52:36 -05:00
|
|
|
"Disable `+flycheck-popup-mode' if `lsp-ui-mode' and `lsp-ui-sideline-enable'
|
|
|
|
are non-nil."
|
|
|
|
(when (and (bound-and-true-p lsp-ui-mode)
|
|
|
|
lsp-ui-sideline-enable)
|
2019-02-26 18:25:52 -05:00
|
|
|
(flycheck-popup-tip-mode -1)))
|