I would like to set the fill-column in Emacs to 120 for Clojure-mode, but leave it at the default (80) otherwise.
How can I do this in my .emacs file?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add a call to
set-fill-columnto theclojure-mode-hook.As
fill-columnis buffer local, it won’t affect other buffers. In fact, you can invokeM-x set-fill-column RET 120to set the fill column in any Emacs buffer interactively.You can check if a variable is buffer local by invoking the help:
C-h v fill-columnspecifies: