[ESS] fill-column in Rnw files
S.J.Eglen at damtp.cam.ac.uk
Thu Jul 14 17:22:47 CEST 2011
> % Local Variables:
> % eval: (add-hook 'LaTeX-mode-hook '(lambda () (setq fill-column 100)))
> % End:
> I have put "solved" in quotes because not only does this piece of code
> affect other latex buffers I will be editing (this might not be so
> bad, I like fill-column 100), but it also affect other buffers of
> other users who edits this file in Emacs. Nevertheless, it seems like
> the only solution right now?
another hack might be to condition setting the variable upon the name of
the buffer (or the value of some other unique variable which you also
set in the local variables). Alternatively, try making the mode-hook
buffer local in some way?
More information about the ESS-help