[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.
- Re: .Re: Org Capture Template, (continued)
- Re: .Re: Org Capture Template, daniela-spit, 2020/11/27
- Re: .Re: Org Capture Template, daniela-spit, 2020/11/27
- Re: .Re: Org Capture Template, Arthur Miller, 2020/11/27
- Re: .Re: Org Capture Template, daniela-spit, 2020/11/27
- Re: .Re: Org Capture Template, daniela-spit, 2020/11/27
- Re: .Re: Org Capture Template, Arthur Miller, 2020/11/27
Re: Org Capture Template, Jean Louis, 2020/11/27