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

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

Re: Org Capture Template


From: Michael Heerdegen
Subject: Re: Org Capture Template
Date: Fri, 27 Nov 2020 22:03:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

daniela-spit@gmx.it writes:

> Yes, it seems better to do  one long string, it was how I was doing things.
> Afterwards, I thought that concat could help me to indent the string
> for cases
> where it is too long.  Is there any other way to be able to indent,
> rather than
> using column number 1, when starting a new line?

The syntax rules in Emacs Lisp allow to quote a linebreak so that it
doesn't get part of the string, and that allows to write strings like this:

#+begin_src emacs-lisp
(message "\
A string
consisting
of multiple lines.")
#+end_src

When I want to use a string literal I prefer that.  All string lines are
indended equally, and Emacs-Lisp mode knows how to handle that,
i.e. indentation commands won't mess it up.  And you don't get overlong
lines with this method.


Michael.




reply via email to

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