summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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