From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Org Capture Template
Date: Fri, 27 Nov 2020 22:03:20 +0100 [thread overview]
Message-ID: <87blfi5x7r.fsf@web.de> (raw)
In-Reply-To: trinity-3b7cdf03-a597-4651-bc6c-2566d972f3ee-1606457621759@3c-app-mailcom-bs02
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.
prev parent reply other threads:[~2020-11-27 21:03 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-27 4:46 Org Capture Template daniela-spit
2020-11-27 5:34 ` Arthur Miller
2020-11-27 5:51 ` .Re: " daniela-spit
2020-11-27 6:51 ` Arthur Miller
2020-11-27 7:07 ` daniela-spit
2020-11-27 7:27 ` Arthur Miller
2020-11-27 7:48 ` daniela-spit
2020-11-27 8:55 ` Arthur Miller
2020-11-27 9:31 ` daniela-spit
2020-11-27 10:32 ` daniela-spit
2020-11-27 16:49 ` Arthur Miller
2020-11-27 17:46 ` daniela-spit
2020-11-27 19:52 ` daniela-spit
2020-11-27 21:03 ` Arthur Miller
2020-11-27 5:53 ` Jean Louis
2020-11-27 6:13 ` daniela-spit
2020-11-27 6:30 ` Jean Louis
2020-11-27 6:43 ` daniela-spit
2020-11-27 21:03 ` Michael Heerdegen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87blfi5x7r.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.