Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Left justified comments for ESS

When I use C-M-\ (with emacs and ESS) to format my R code, it right justifies my comments. For example, it changes:

#This is a comment
x=5

to

                       #This is a comment
x=5

How do I stop my comments being right-justified?

like image 435
csgillespie Avatar asked Jan 28 '26 13:01

csgillespie


1 Answers

One solution is to use ##. By convention, that one doesn't move.

like image 75
Dirk Eddelbuettel Avatar answered Jan 30 '26 02:01

Dirk Eddelbuettel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!