Reinstall fill-column-indicator

I found some advice (pun intended) on how to make it work with `avy`.
This commit is contained in:
Gergely Polonkai 2018-11-30 09:25:32 +01:00
parent 3400df2052
commit ca4ecfc231

View File

@ -1786,6 +1786,13 @@ window.
:demand :demand
:config :config
(avy-setup-default) (avy-setup-default)
(defadvice avy-goto-line (around avy-fci activate)
(let ((fci-was-on (if (boundp 'fci-mode) fci-mode nil)))
(when fci-was-on
(fci-mode -1))
ad-do-it
(when fci-was-on
(fci-mode 1))))
:bind :bind
(("M-g c" . avy-goto-char) (("M-g c" . avy-goto-char)
("M-g C" . avy-goto-char-2) ("M-g C" . avy-goto-char-2)
@ -2243,6 +2250,14 @@ Then configure ~real-auto-save-mode~
("C-c o" . ciel-co))) ("C-c o" . ciel-co)))
#+END_SRC #+END_SRC
** Display a line at ~fill-column~
#+BEGIN_SRC emacs-lisp
(use-package fill-column-indicator
:hook
(prog-mode . fci-mode))
#+END_SRC
* Make programming a bit easier * Make programming a bit easier
** Electric case ** Electric case