help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to change 'comment-region' behaviour globally?


From: Drew Adams
Subject: RE: How to change 'comment-region' behaviour globally?
Date: Fri, 15 Feb 2013 19:26:51 -0800

> Is there a way to change the behaviour of 'comment-region'
> globally such that, even when applied one line after another,
> the 'comment-start' characters are
> never indented, but always placed at the beginning of line?
> 
> With globally I mean that this works independent from the 
> comment-style definitions of the major-mode, and overrides
> the major-mode settings if they are different. 

Customizing `comment-style' to `plain' doesn't help?

I guess it won't help if a given major mode declares that variable to be
buffer-local and sets its own value for it.  But it's not playing nice if the
major mode does that, IMO.  `comment-styles' is a user option.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]