Ich versuche, Emacs zu konfigurieren, um meine C-Block Kommentare schön einzurücken.Indent C Block Kommentare in Emacs
Emacs (22.3) hat standardmäßig (unabhängig von der Einbuchtung-Stil):
/* My very long comment which spreads over multiple lines * and thus needs to be filled. */
Aber was würde ich sehr lieber ist:
/* My very long comment which spreads over multiple lines * and thus needs to be filled. */
Ich habe versucht, mit c-Offset zu spielen, um -alist und die syntaktische Symbol `c‘, aber es half mir das Problem nicht verstehen:
(c-add-style "mine"
'((c-basic-offset . 2)
(c-block-comment-prefix . "* ")
(c-offsets-alist
(c . +)))
)
Irgendwelche Ideen? Danke im Voraus!
Cheers, Daniel
Hm, ich kann das bestätigen, mit 'emacs -Q' funktioniert es für mich. Jetzt muss ich nur herausfinden, wo ich vermassele :( Vielen Dank für Ihre Hilfe! – danielpoe
Ok ich fand das Problem, 'Verilog-Modus' scheint etwas durcheinander zu bringen! Da dies jetzt sogar ein Standard-Modul ist, würde ich anrufen dies ist ein Fehler! Cheers, Daniel – danielpoe