I am using Aquamacs on OS X 10.9.4. I have the following lines in my Preferences.el
file
(which is similar to the .emacs
init file):
(add-to-list 'load-path "~/.emacs.d/")
(require 'fill-column-indicator)
(setq-default fci-mode t)
I use M-x fci-mode
to manually toggle the column indicator.
How can fci-mode
be enabled on startup using Aquamacs?
With Emacs 27 comes the display-fill-column-indicator-mode
minor mode, which obsoletes the fill-column-indicator
package. You can add:
(add-hook 'prog-mode-hook (lambda ()
(display-fill-column-indicator-mode)))
to ~/.emacs
to enable it for prog-mode
buffers, or:
(global-display-fill-column-indicator-mode)
to enable it globally. To toggle it, use M-x display-fill-column-indicator-mode
.
Don't put ~/.emacs.d
itself in your load-path
. Always use a sub-directory.
e.g.: use ~/.emacs.d/lisp/fill-column-indicator.el
and:
(add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp"))
(require 'fill-column-indicator)
This library doesn't provide a global minor mode, but you can make one yourself like so:
(define-globalized-minor-mode my-global-fci-mode fci-mode turn-on-fci-mode)
(my-global-fci-mode 1)
or toggle it interactively with M-x my-global-fci-mode
RET
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With