문제

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.

도움이 되었습니까?

해결책

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)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top