Configure truncate-lines and visual-line-mode correctly

This commit is contained in:
2018-05-20 23:12:14 +01:00
parent c2b24ef1ee
commit 07b7a81ef9
3 changed files with 8 additions and 5 deletions

View File

@@ -9,8 +9,9 @@
(use-package fill-column-indicator
:hook (prog-mode . fci-mode)
:config
(setq fci-rule-width 1
fci-handle-trucate-lines nil))
(setq fci-handle-line-move-visual nil
fci-handle-truncate-lines nil
fci-rule-width 1))
(provide 'siren-fci)
;;; siren-fci.el ends here

View File

@@ -17,8 +17,8 @@
(setq fill-column 80
whitespace-action '(auto-cleanup))
(visual-line-mode +1)
(whitespace-mode +1)))
(visual-line-mode t)
(whitespace-mode t)))
(provide 'siren-prog-mode)
;;; siren-prog-mode.el ends here

View File

@@ -11,7 +11,9 @@
:hook (text-mode . siren-text-mode-setup)
:init
(defun siren-text-mode-setup ()
(setq fill-column 80)))
(setq fill-column 80)
(visual-line-mode t)))
(provide 'siren-text-mode)
;;; siren-text-mode.el ends here