I use fill-column
in my dot-Emacs. And I have the following setting:
(turn-on-auto-fill)
(set-fill-column 60)
The result looks like this:
Every time when the input exceeds columnnumber 60, it will break and proceed further on the new line. Next to this, I use an YASnippet snippet, which will set up a proper structure for documentation of functions. The snippet is constructed as following:
#name : example of snippet foo bar
# --
# EXAMPLE FOO BAR
/* $1
*
*/
public function f$2($3) {
} # End scope f$2
However, with the fill-column
setting enabled, I ran into weird problems:
When typing in the docstring, the sentence get stucked at the end. I've expected it to proceed on a new line (with a new comment tag before), when the current line gets too long. But this is not the case.
Furthermore, the weird thingy is that this problem is not anymore when I delete the mirror on the last line in the snippet:
#name : example of snippet foo bar
# --
# EXAMPLE FOO BAR
/* $1
*
*/
public function f$2($3) {
}
Then I get this instead:
But why? Can anyone explain why the last line is causing an error with fill-column? I don't see any relationship between these two things.
And how can I get the latest line mirrored, without the docstring stucked on first line?