Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
I would like to limit most lines of code to 100 characters.
Is there a recommended package for making this easy to do by showing a right margin line? If so, maybe it should be mentioned in the documentation?
The text was updated successfully, but these errors were encountered:
Column enforce mode
Sorry, something went wrong.
Also SPC t f display the fill column (by default the fill column is set to 80)
Don't forget to close the issue
Yes, SPC t f is what you want. You can activate it on all relevant buffers with this:
SPC t f
;; Activate column indicator in prog-mode and text-mode
(add-hook 'prog-mode-hook 'turn-on-fci-mode)
(add-hook 'text-mode-hook 'turn-on-fci-mode)
You can also press M-q to automatically fill paragraphs to the value of fill-column. Note it can be customized with:
(setq-default fill-column 100)
in your user-init. Does this answer your question?
Is there a way to make the line color more subtle for fci-mode?
@amichail (setq fci-rule-color "#FF0000"). You can choose the color you want instead of "#FF0000"
(setq fci-rule-color "#FF0000")
I got it working! Thanks!
Googled this up, and @StreakyCobra's answer is exactly what I was looking for.
Weirdly, (setq-default fill-column 100) in my user-init wasn't working, so I did this instead:
(defun fill-column-100 ()
;; later, in user-init
(add-hook 'prog-mode-hook 'fill-column-100)
(add-hook 'text-mode-hook 'fill-column-100)
Successfully merging a pull request may close this issue.