From 4396abb6ef23fb0508efc128341aa6da15227144 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 23 Aug 2016 16:15:35 -0700 Subject: [PATCH] Add fill-column-indicator --- dotfiles/emacs.d/README.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index fb8d0010..add54a09 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -1217,6 +1217,22 @@ whenever there is an error. ("n" winner-redo "forward" :exit t))) (winner-mode 1))) #+END_SRC +*** fill-column-indicator +This interferes with too many other packages. See +https://github.com/alpaker/Fill-Column-Indicator/issues/21 for more details +#+BEGIN_SRC emacs-lisp +(use-package fill-column-indicator + :disabled t + :config + (progn + (defun fci-on-off-fci-before-company (command) + (when (string= "show" command) + (turn-off-fci-mode)) + (when (string= "hide" command) + (turn-on-fci-mode))) + (advice-add 'company-call-frontends :before #'fci-on-off-fci-before-company) + (add-hook 'prog-mode-hook 'fci-mode))) +#+END_SRC ** Keybindings *** bind-key #+BEGIN_SRC emacs-lisp