Disable fci-mode and enable show-trailing-whitespace

This commit is contained in:
Wojciech Kozlowski 2017-09-02 08:02:53 +01:00
parent 3c0d7aece4
commit 0866925ad1
2 changed files with 10 additions and 8 deletions

View File

@ -61,9 +61,12 @@
(use-package fill-column-indicator
:defer t
:bind
(("C-x t f" . fci-mode))
:init
(add-hook 'prog-mode-hook 'fci-mode-unless-large-file)
(add-hook 'text-mode-hook 'fci-mode-unless-large-file))
;; (add-hook 'prog-mode-hook 'fci-mode-unless-large-file)
;; (add-hook 'text-mode-hook 'fci-mode-unless-large-file)
)
;; --------------------------------------------------------------------------
;; Rainbow mode.

View File

@ -186,13 +186,12 @@
;; --------------------------------------------------------------------------
;; The following setting of `show-trailing-whitespace' is incompatible with
;; fci-mode. The only known workaround is to have whitespace mode on with
;; whitespace-style set such that only trailing whitespace is shown. At the
;; moment, just rely on `ws-butler'.
;; `fci-mode'. The only known workaround is to have whitespace mode on with
;; whitespace-style set such that only trailing whitespace is shown.
;; (add-hook 'prog-mode-hook (lambda ()
;; (interactive)
;; (setq show-trailing-whitespace t)))
(add-hook 'prog-mode-hook (lambda ()
(interactive)
(setq show-trailing-whitespace t)))
;; --------------------------------------------------------------------------
;; Automatically indent yanked text in programming mode.