More compact hl-line / solaire mode check

This commit is contained in:
TEC 2021-09-11 15:58:17 +08:00
parent fdd1692a4c
commit 6faa48a988
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 2 additions and 4 deletions

View File

@ -257,10 +257,8 @@ and the line number of the first line of the region."
(show-paren-match nil)
(region nil))
line-spacing 0.1)
(when (and (featurep 'hl-line) hl-line-mode)
(hl-line-mode -1))
(when (and (featurep 'solaire-mode) solaire-mode)
(solaire-mode -1))
(when (bound-and-true-p hl-line-mode) (hl-line-mode -1))
(when (bound-and-true-p solaire-mode) (solaire-mode -1))
(run-hooks 'screenshot-buffer-creation-hook))
(defvar screenshot--text-only-buffer