Domanda

I've just started using Fill Column Indicator for Emacs, which adds a vertical line on editing window to indicate the fill column.

I figured out that turn-on-fci-mode function could trigger the the bar. I wanted it to start at the time when Emacs starts, so I also included it in the .emacs file.

The changes in the .emacs files are as follows:

(add-to-list 'load-path "~/.emacs.d/custom")
(require 'fill-column-indicator) 
(turn-on-fci-mode)

Unfortunately, the line does not come up, even though running the function manually brings up the line.

È stato utile?

Soluzione

fci-mode is buffer local. That means you need to turn it on for each buffer individually - setting it in your .emacs will set for one buffer, possibly just the splash screen, and not have any influence on the rest of your buffers.

To turn it on for all buffers, you need to use the following code in .emacs:

(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))
  (global-fci-mode 1)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top