I’m using Stefan Bruda’s Prolog mode for emacs but I find the behavior with tab and “%” to be annoying … it always indents comments to column 32 (variable comment-column
), even for lines starting with “%!”.
How can I change this behaviour? If I set comment-column
to 0, then single-line comments get indented incorrectly:
foo :-
% this is a comment
bar.
instead of
foo :-
% this is a comment
bar.
and if I leave comment-column
at 32, then I get the following, which I don’t want:
%! foo is det.
foo :-
% this is a comment
bar.