spacemacs/init-package/init-fill-column-indicator.el
syl20bnr 1ffb42448e Migrate all package configs to use-package.
Total load time for 90+ packages without byte-compiling: 3s... amazing !
Thanks to \@jwiegley :-)
2013-11-20 00:30:48 -05:00

21 lines
431 B
EmacsLisp

(setq fci-rule-width 1)
(setq fci-enabled 0)
(defun toggle-fill-column-indicator ()
(interactive)
(make-local-variable 'fci-enabled)
(if (> fci-enabled 0) (deactivate-fci) (activate-fci)))
(defun activate-fci ()
(setq fci-rule-column 79)
(setq fci-enabled 1)
(fci-mode 1))
(defun deactivate-fci ()
(setq fci-enabled 0)
(fci-mode 0))
(use-package fill-column-indicator
:commands toggle-fill-column-indicator)