     ;; (delete-selection-mode -1)
     (flyspell-mode -1)
     (visual-line-mode -1)
-    (writeroom-mode 0)))
+    (when (fboundp 'writeroom-mode)
+      (writeroom-mode 0))))
 
 ;;(add-hook 'org-mode-hook 'buffer-face-mode)
 



(require-package 'writeroom-mode)

(define-minor-mode prose-mode
  "Set up a buffer for prose editing.

  nil " Prose" nil
  (if prose-mode
      (progn
        (when (fboundp 'writeroom-mode)
          (writeroom-mode 1))
        (setq truncate-lines nil)
        (setq word-wrap t)
        (setq cursor-type 'bar)
