From ca4ecfc23127dafd66c98246a33d7919b1025f11 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 30 Nov 2018 09:25:32 +0100 Subject: [PATCH] Reinstall fill-column-indicator I found some advice (pun intended) on how to make it work with `avy`. --- configuration.org | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configuration.org b/configuration.org index 7c3dc71..56a18ba 100644 --- a/configuration.org +++ b/configuration.org @@ -1786,6 +1786,13 @@ window. :demand :config (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 (("M-g c" . avy-goto-char) ("M-g C" . avy-goto-char-2) @@ -2243,6 +2250,14 @@ Then configure ~real-auto-save-mode~ ("C-c o" . ciel-co))) #+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 ** Electric case