summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Jason McBrayer 2020-06-15 07:31:23 -0400
committerGravatar Jason McBrayer 2020-06-15 07:31:23 -0400
commit8ad9cba8028004895de50f902b1a087dfaa3d3a3 (patch)
treed59626e8da7d729c20c3fe48744331ca3c603ef4
parentd2b6804043a994f0d953be53eda7e5b6671eeef5 (diff)
downloadgemini.el-8ad9cba8028004895de50f902b1a087dfaa3d3a3.tar.gz
gemini.el-8ad9cba8028004895de50f902b1a087dfaa3d3a3.tar.xz
gemini.el-8ad9cba8028004895de50f902b1a087dfaa3d3a3.zip
Fix a byte-compile warning
-rw-r--r--gemini-mode.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/gemini-mode.el b/gemini-mode.el
index afb5b4b..a7111b4 100644
--- a/gemini-mode.el
+++ b/gemini-mode.el
@@ -131,11 +131,8 @@ insert a list item."
(define-derived-mode gemini-mode text-mode "gemini"
"Major mode for editing text/gemini 'geminimap' documents"
(setq font-lock-defaults '(gemini-highlights))
- (if (fboundp #'visual-fill-column-mode)
- (progn
- (visual-line-mode 1)
- (visual-fill-column-mode 1))
- (visual-line-mode 1)))
+ (visual-line-mode 1)
+ (when (featurep 'visual-fill-column (visual-fill-column-mode 1))))
;;;###autoload
(progn