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: Sun, 6 Jun 2021 02:39:36 +0200 (CEST)

For emacs-lisp-mode I would like "s" to be

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



For texinfo-mode I would like "s" to be

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



For fortran-mode I would like "s" to be

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


For f90-mode I would like "s" to be

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


Finally I would insert the string "s".





Only the first two characters change at the beginning of the string "s".


From: Jean Louis <bugs@gnu.support>
To: martin-kemp@brusseler.com
Subject: Re: Using comment characters for specific major modes
Date: 06/06/2021 02:23:04 Europe/Paris
Cc: help-gnu-emacs@gnu.org

* martin-kemp@brusseler.com <martin-kemp@brusseler.com> [2021-06-06 03:18]:
> The way you are using comment in
> (comment (substring initial 2))

As the above is incomplete sentence I cannot understand you. 

> Does not like you are calling a function that introduces the comment
> characters, particularly when I need twe next to each other.

Hard to understand. 

> I am thankful for your help but I am not getting it yet.

It's OK neither I get what it should be. Maybe we can try with lights
or music?

Reference:
https://www.imdb.com/title/tt0075860/mediaindex?ref_=tt_mv_close




-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/




reply via email to

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