Commit 60305599 authored by Jason Blevins's avatar Jason Blevins

Initialize width even when started in background

parent 5f8b46c9
......@@ -1682,6 +1682,9 @@ Turning on `deft-mode' runs the hook `deft-mode-hook'.
(setq truncate-lines t)
(setq buffer-read-only t)
(setq default-directory (expand-file-name deft-directory))
(setq deft-window-width (if (deft-buffer-visible-p)
;; Visual line mode causes lines to wrap, so turn it off.
(when (fboundp 'visual-line-mode)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment