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

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

Using comment characters for specific major modes


From: martin-kemp
Subject: Using comment characters for specific major modes
Date: Sat, 5 Jun 2021 22:52:06 +0200 (CEST)

Am using the following expression to make a line composed of ";" of length lena.



The first two semicolons ";;" are for when I use elisp code.



    (setq-local s (concat ";; " (make-string lena ?\;)))



But I want to change the starting ";;" to be the comment character of the major 
mode I am working with.



For texinfo I want "@c", and for fortran-mode I want "c", and "!!" for f90-mode.







reply via email to

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