unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Indentation with inline comments in Emacs
@ 2022-04-16 12:12 Zelphir Kaltstahl
  2022-04-16 14:57 ` Jérémy Korwin-Zmijowski
  2022-04-17  3:03 ` Taylan Kammer
  0 siblings, 2 replies; 12+ messages in thread
From: Zelphir Kaltstahl @ 2022-04-16 12:12 UTC (permalink / raw)
  To: guile-user

Hello Guile users!

The subject might not be only Guile related, but I figure, that many on this 
mailing list are using Emacs for writing Guile code. I wonder, if anyone has 
some trick for fixing the following indentation issue:

Sometimes I want to put inline comments with #||# in things like lists, 
arguments for function calls or vectors. For example I want to write the name of 
the month next to the number of days of that month, in a vector creation. Here 
is the example:

~~~~
(define DAYS-IN-MONTH
   #(#|January|# 31
                 #|February|# 28
                              #|March|# 31 #|April|# 30 #|May|# 31 #|June|# 30 #|July|# 31 #|August|# 30
                               30 30))
~~~~

As you can see, the indentation is adjusted each line according to the 
non-comment thing on the previous line, when I press TAB or whatever other key 
binding one has for indentation. However, in this case I would rather want it to 
adjust indentation. Is there a quick fix for this? Or some way to make Emacs 
understand this as a separate case and have it indent "correctly"? Does anyone 
have a solution?

Regards,
Zelphir

-- 
repositories: https://notabug.org/ZelphirKaltstahl




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-04-18 14:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-16 12:12 Indentation with inline comments in Emacs Zelphir Kaltstahl
2022-04-16 14:57 ` Jérémy Korwin-Zmijowski
2022-04-17 10:49   ` Zelphir Kaltstahl
2022-04-17 13:44     ` Luis Felipe
2022-04-18 10:48       ` Zelphir Kaltstahl
2022-04-18 13:33         ` Ricardo G. Herdt
2022-04-18 14:09           ` Luis Felipe
2022-04-18 14:05         ` Luis Felipe
2022-04-17  3:03 ` Taylan Kammer
2022-04-17 11:06   ` Zelphir Kaltstahl
2022-04-17 14:58     ` Maxime Devos
2022-04-18 10:49       ` Zelphir Kaltstahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).