Skip to content

Commit

Permalink
Autoload fci-mode and turn-on-fci-mode.
Browse files Browse the repository at this point in the history
So that in my init file I can say (add-hook 'prog-mode-hook 'turn-on-fci-mode)
without having to load the package up-front.
  • Loading branch information
drothlis committed May 4, 2012
1 parent 51ef352 commit a16f2f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fill-column-indicator.el
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ U+E000-U+F8FF, inclusive)."
;;; Mode Definition
;;; ---------------------------------------------------------------------

;;;###autoload
(define-minor-mode fci-mode
"Toggle fci-mode on and off.
Fci-mode indicates the location of the fill column by drawing a
Expand Down Expand Up @@ -465,6 +466,7 @@ on troubleshooting.)"
(dolist (var fci-internal-vars)
(set var nil))))

;;;###autoload
(defun turn-on-fci-mode ()
"Turn on fci-mode unconditionally."
(interactive)
Expand Down

0 comments on commit a16f2f0

Please sign in to comment.