all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Org Capture Template
@ 2020-11-27  4:46 daniela-spit
  2020-11-27  5:34 ` Arthur Miller
  2020-11-27  5:53 ` Jean Louis
  0 siblings, 2 replies; 19+ messages in thread
From: daniela-spit @ 2020-11-27  4:46 UTC (permalink / raw)
  To: Help Gnu Emacs

I am writing an Org Capture Template.  But I want to use concat
to keep indentation.  But it is giving me "Invalid capture template".

(setq org-capture-templates

   '( ("t" "Todo" entry
         (file "~/02history/rcl.org")
         (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
                 "Detail: %?\n"
                 "Entered: %T\n  Link: %a\n") ))


-------

(setq org-capture-templates

   '( ("t" "Todo" entry
         (file "~/02history/rcl.org")
"* TODO %^{Heading}\n  Brief: %^{Brief}\n
Detail: %?\n
Entered: %T\n  Link: %a\n") ))

-------





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

* Re: Org Capture Template
  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  5:53 ` Jean Louis
  1 sibling, 1 reply; 19+ messages in thread
From: Arthur Miller @ 2020-11-27  5:34 UTC (permalink / raw)
  To: daniela-spit; +Cc: Help Gnu Emacs

daniela-spit@gmx.it writes:

> I am writing an Org Capture Template.  But I want to use concat
> to keep indentation.  But it is giving me "Invalid capture template".
>
> (setq org-capture-templates
>
>    '( ("t" "Todo" entry
>          (file "~/02history/rcl.org")
>          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>                  "Detail: %?\n"
>                  "Entered: %T\n  Link: %a\n") ))
>
>
> -------
>
> (setq org-capture-templates
>
>    '( ("t" "Todo" entry
>          (file "~/02history/rcl.org")
> "* TODO %^{Heading}\n  Brief: %^{Brief}\n
> Detail: %?\n
> Entered: %T\n  Link: %a\n") ))
>
> -------

This one works:

(setq org-capture-templates

   '( ("t" "Todo" entry
         (file "~/02history/rcl.org")
         (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
                 "Detail: %?\n"
                 "Entered: %T\n  Link: %a\n") )))

I suggest you put this into your init file:

(setq show-paren-style 'expression)
(show-paren-mode t)

It will be much easier to see when you miss a parenthesis next time if
you let Emacs match parenthesis for you and syntax colour entire
expressions between matching parenthesis.





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

* .Re: Org Capture Template
  2020-11-27  5:34 ` Arthur Miller
@ 2020-11-27  5:51   ` daniela-spit
  2020-11-27  6:51     ` Arthur Miller
  0 siblings, 1 reply; 19+ messages in thread
From: daniela-spit @ 2020-11-27  5:51 UTC (permalink / raw)
  To: Arthur Miller; +Cc: Help Gnu Emacs

Have you tried it?  Am still getting "Invalid Capture Template".

> Sent: Friday, November 27, 2020 at 6:34 AM
> From: "Arthur Miller" <arthur.miller@live.com>
> To: daniela-spit@gmx.it
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Org Capture Template
>
> daniela-spit@gmx.it writes:
>
> > I am writing an Org Capture Template.  But I want to use concat
> > to keep indentation.  But it is giving me "Invalid capture template".
> >
> > (setq org-capture-templates
> >
> >    '( ("t" "Todo" entry
> >          (file "~/02history/rcl.org")
> >          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >                  "Detail: %?\n"
> >                  "Entered: %T\n  Link: %a\n") ))
> >
> >
> > -------
> >
> > (setq org-capture-templates
> >
> >    '( ("t" "Todo" entry
> >          (file "~/02history/rcl.org")
> > "* TODO %^{Heading}\n  Brief: %^{Brief}\n
> > Detail: %?\n
> > Entered: %T\n  Link: %a\n") ))
> >
> > -------
>
> This one works:
>
> (setq org-capture-templates
>
>    '( ("t" "Todo" entry
>          (file "~/02history/rcl.org")
>          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>                  "Detail: %?\n"
>                  "Entered: %T\n  Link: %a\n") )))
>
> I suggest you put this into your init file:
>
> (setq show-paren-style 'expression)
> (show-paren-mode t)
>
> It will be much easier to see when you miss a parenthesis next time if
> you let Emacs match parenthesis for you and syntax colour entire
> expressions between matching parenthesis.
>
>
>



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

* Re: Org Capture Template
  2020-11-27  4:46 Org Capture Template daniela-spit
  2020-11-27  5:34 ` Arthur Miller
@ 2020-11-27  5:53 ` Jean Louis
  2020-11-27  6:13   ` daniela-spit
  1 sibling, 1 reply; 19+ messages in thread
From: Jean Louis @ 2020-11-27  5:53 UTC (permalink / raw)
  To: daniela-spit; +Cc: Help Gnu Emacs

* daniela-spit@gmx.it <daniela-spit@gmx.it> [2020-11-27 07:47]:
> I am writing an Org Capture Template.  But I want to use concat
> to keep indentation.  But it is giving me "Invalid capture template".
> 
> (setq org-capture-templates
> 
>    '( ("t" "Todo" entry
>          (file "~/02history/rcl.org")
>          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>                  "Detail: %?\n"
>                  "Entered: %T\n  Link: %a\n") ))

Probably because anything after quoted list is not evaluated.

This '((+ 2 2)) will not be evaluated to '(4)

To have `concat' evaluted you would need:

(list  (list "t" "Todo" 'entry
          '(file "~/02history/rcl.org")
          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
                  "Detail: %?\n"
                  "Entered: %T\n  Link: %a\n") ))

As you see I would need to quote entry and list beginning with `file'
not to get such evaluated to make concat work.

And there is also no ensurance that program using customized variable
will take it as list to be evaluated. It is better you do with with
hand by using:

"* TODO %^{Heading}\n  Brief: %^{Brief}\n"Detail: %?\nEntered: %T\nLink: %a\n"




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

* Re: Org Capture Template
  2020-11-27  5:53 ` Jean Louis
@ 2020-11-27  6:13   ` daniela-spit
  2020-11-27  6:30     ` Jean Louis
  2020-11-27 21:03     ` Michael Heerdegen
  0 siblings, 2 replies; 19+ messages in thread
From: daniela-spit @ 2020-11-27  6:13 UTC (permalink / raw)
  To: Jean Louis; +Cc: Help Gnu Emacs



> Sent: Friday, November 27, 2020 at 6:53 AM
> From: "Jean Louis" <bugs@gnu.support>
> To: daniela-spit@gmx.it
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Org Capture Template
>
> * daniela-spit@gmx.it <daniela-spit@gmx.it> [2020-11-27 07:47]:
> > I am writing an Org Capture Template.  But I want to use concat
> > to keep indentation.  But it is giving me "Invalid capture template".
> >
> > (setq org-capture-templates
> >
> >    '( ("t" "Todo" entry
> >          (file "~/02history/rcl.org")
> >          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >                  "Detail: %?\n"
> >                  "Entered: %T\n  Link: %a\n") ))
>
> Probably because anything after quoted list is not evaluated.
>
> This '((+ 2 2)) will not be evaluated to '(4)
>
> To have `concat' evaluted you would need:
>
> (list  (list "t" "Todo" 'entry
>           '(file "~/02history/rcl.org")
>           (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>                   "Detail: %?\n"
>                   "Entered: %T\n  Link: %a\n") ))
>
> As you see I would need to quote entry and list beginning with `file'
> not to get such evaluated to make concat work.
>
> And there is also no ensurance that program using customized variable
> will take it as list to be evaluated. It is better you do with with
> hand by using:
>
> "* TODO %^{Heading}\n  Brief: %^{Brief}\n"Detail: %?\nEntered: %T\nLink: %a\n"

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?





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

* Re: Org Capture Template
  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
  1 sibling, 1 reply; 19+ messages in thread
From: Jean Louis @ 2020-11-27  6:30 UTC (permalink / raw)
  To: daniela-spit; +Cc: Help Gnu Emacs

* daniela-spit@gmx.it <daniela-spit@gmx.it> [2020-11-27 09:14]:
> 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?

When doing customization or when writing some text? Or in programming
modes?

In customization I have no idea about indenting. Normally items are in
field forms and person need not do complicated lists.

Do you use the `customize' function to define org-capture-templates?

As it looks like below, pretty visible, easier to edit.

Hide Org Capture Templates:
INS DEL Choice: Value Menu Template entry:
            Keys           : p
            Description    : Protocol
            Capture Type   : Value Menu Org entry
            Target location: Value Menu File & Headline:
            Filename       : Value Menu Literal: ~/Documents/Orgnotes.org
              Headline: Inbox
            Template       : Value Menu String: * %^{Title}
Source: %u, %c
 #+BEGIN_QUOTE
%i
#+END_QUOTE

If you use it directly in your config, then you have standard Emacs
Lisp indentation. For strings you can do any how, but then do not
invoke M-q to indent as it will ruin your own string chunk
indentations.

When there are longer strings with new lines I tend to define them this way:

(let ((string "The heading

Then anything else is here.
I just keep writing straight from first column")))

rather than using this way:

(let ((string (concat "The heading\n\n"
		      "Then anything else is here.\n"
                      "I just keep writing straight from first column"))))


And I mean longer strings than those above. For few lines I could
be using similar method like you.



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

* Re: Org Capture Template
  2020-11-27  6:30     ` Jean Louis
@ 2020-11-27  6:43       ` daniela-spit
  0 siblings, 0 replies; 19+ messages in thread
From: daniela-spit @ 2020-11-27  6:43 UTC (permalink / raw)
  To: Jean Louis; +Cc: Help Gnu Emacs



> Sent: Friday, November 27, 2020 at 7:30 AM
> From: "Jean Louis" <bugs@gnu.support>
> To: daniela-spit@gmx.it
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Org Capture Template
>
> * daniela-spit@gmx.it <daniela-spit@gmx.it> [2020-11-27 09:14]:
> > 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?
>
> When doing customization or when writing some text? Or in programming
> modes?
>
> In customization I have no idea about indenting. Normally items are in
> field forms and person need not do complicated lists.
>
> Do you use the `customize' function to define org-capture-templates?

I just use as in example

(setq org-capture-templates
   '(("t" "Todo" entry
        (file "~/02history/rcl.org")
"* TODO %^{Heading}\n  Brief: %^{Brief}\n
Detail: %?\n
Entered: %T\n  Link: %a\n")))

> As it looks like below, pretty visible, easier to edit.
>
> Hide Org Capture Templates:
> INS DEL Choice: Value Menu Template entry:
>             Keys           : p
>             Description    : Protocol
>             Capture Type   : Value Menu Org entry
>             Target location: Value Menu File & Headline:
>             Filename       : Value Menu Literal: ~/Documents/Orgnotes.org
>               Headline: Inbox
>             Template       : Value Menu String: * %^{Title}
> Source: %u, %c
>  #+BEGIN_QUOTE
> %i
> #+END_QUOTE
>
> If you use it directly in your config, then you have standard Emacs
> Lisp indentation. For strings you can do any how, but then do not
> invoke M-q to indent as it will ruin your own string chunk
> indentations.
>
> When there are longer strings with new lines I tend to define them this way:
>
> (let ((string "The heading
>
> Then anything else is here.
> I just keep writing straight from first column")))
>
> rather than using this way:
>
> (let ((string (concat "The heading\n\n"
> 		      "Then anything else is here.\n"
>                       "I just keep writing straight from first column"))))
>
>
> And I mean longer strings than those above. For few lines I could
> be using similar method like you.




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

* Re: .Re: Org Capture Template
  2020-11-27  5:51   ` .Re: " daniela-spit
@ 2020-11-27  6:51     ` Arthur Miller
  2020-11-27  7:07       ` daniela-spit
  0 siblings, 1 reply; 19+ messages in thread
From: Arthur Miller @ 2020-11-27  6:51 UTC (permalink / raw)
  To: daniela-spit; +Cc: Help Gnu Emacs

daniela-spit@gmx.it writes:

> Have you tried it?  Am still getting "Invalid Capture Template".
Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
even looking at it; I am sorry:

(setq org-capture-templates

   `( ("t" "Todo" entry
       (file "~/Dokument/notes.org")
         ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
                 "Detail: %?\n"
                 "Entered: %T\n  Link: %a\n") )))



>> Sent: Friday, November 27, 2020 at 6:34 AM
>> From: "Arthur Miller" <arthur.miller@live.com>
>> To: daniela-spit@gmx.it
>> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> Subject: Re: Org Capture Template
>>
>> daniela-spit@gmx.it writes:
>>
>> > I am writing an Org Capture Template.  But I want to use concat
>> > to keep indentation.  But it is giving me "Invalid capture template".
>> >
>> > (setq org-capture-templates
>> >
>> >    '( ("t" "Todo" entry
>> >          (file "~/02history/rcl.org")
>> >          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>> >                  "Detail: %?\n"
>> >                  "Entered: %T\n  Link: %a\n") ))
>> >
>> >
>> > -------
>> >
>> > (setq org-capture-templates
>> >
>> >    '( ("t" "Todo" entry
>> >          (file "~/02history/rcl.org")
>> > "* TODO %^{Heading}\n  Brief: %^{Brief}\n
>> > Detail: %?\n
>> > Entered: %T\n  Link: %a\n") ))
>> >
>> > -------
>>
>> This one works:
>>
>> (setq org-capture-templates
>>
>>    '( ("t" "Todo" entry
>>          (file "~/02history/rcl.org")
>>          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>>                  "Detail: %?\n"
>>                  "Entered: %T\n  Link: %a\n") )))
>>
>> I suggest you put this into your init file:
>>
>> (setq show-paren-style 'expression)
>> (show-paren-mode t)
>>
>> It will be much easier to see when you miss a parenthesis next time if
>> you let Emacs match parenthesis for you and syntax colour entire
>> expressions between matching parenthesis.
>>
>>
>>



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

* Re: .Re: Org Capture Template
  2020-11-27  6:51     ` Arthur Miller
@ 2020-11-27  7:07       ` daniela-spit
  2020-11-27  7:27         ` Arthur Miller
  0 siblings, 1 reply; 19+ messages in thread
From: daniela-spit @ 2020-11-27  7:07 UTC (permalink / raw)
  To: Arthur Miller; +Cc: Help Gnu Emacs

> Sent: Friday, November 27, 2020 at 7:51 AM
> From: "Arthur Miller" <arthur.miller@live.com>
> To: daniela-spit@gmx.it
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: .Re: Org Capture Template
>
> daniela-spit@gmx.it writes:
>
> > Have you tried it?  Am still getting "Invalid Capture Template".
> Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
> even looking at it; I am sorry:

If you were doing it for the glory, it backfired.

> (setq org-capture-templates
>
>    `( ("t" "Todo" entry
>        (file "~/Dokument/notes.org")
>          ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>                  "Detail: %?\n"
>                  "Entered: %T\n  Link: %a\n") )))
>
>
>
> >> Sent: Friday, November 27, 2020 at 6:34 AM
> >> From: "Arthur Miller" <arthur.miller@live.com>
> >> To: daniela-spit@gmx.it
> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> Subject: Re: Org Capture Template
> >>
> >> daniela-spit@gmx.it writes:
> >>
> >> > I am writing an Org Capture Template.  But I want to use concat
> >> > to keep indentation.  But it is giving me "Invalid capture template".
> >> >
> >> > (setq org-capture-templates
> >> >
> >> >    '( ("t" "Todo" entry
> >> >          (file "~/02history/rcl.org")
> >> >          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >> >                  "Detail: %?\n"
> >> >                  "Entered: %T\n  Link: %a\n") ))
> >> >
> >> >
> >> > -------
> >> >
> >> > (setq org-capture-templates
> >> >
> >> >    '( ("t" "Todo" entry
> >> >          (file "~/02history/rcl.org")
> >> > "* TODO %^{Heading}\n  Brief: %^{Brief}\n
> >> > Detail: %?\n
> >> > Entered: %T\n  Link: %a\n") ))
> >> >
> >> > -------
> >>
> >> This one works:
> >>
> >> (setq org-capture-templates
> >>
> >>    '( ("t" "Todo" entry
> >>          (file "~/02history/rcl.org")
> >>          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >>                  "Detail: %?\n"
> >>                  "Entered: %T\n  Link: %a\n") )))
> >>
> >> I suggest you put this into your init file:
> >>
> >> (setq show-paren-style 'expression)
> >> (show-paren-mode t)
> >>
> >> It will be much easier to see when you miss a parenthesis next time if
> >> you let Emacs match parenthesis for you and syntax colour entire
> >> expressions between matching parenthesis.
> >>
> >>
> >>
>
>



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

* Re: .Re: Org Capture Template
  2020-11-27  7:07       ` daniela-spit
@ 2020-11-27  7:27         ` Arthur Miller
  2020-11-27  7:48           ` daniela-spit
  0 siblings, 1 reply; 19+ messages in thread
From: Arthur Miller @ 2020-11-27  7:27 UTC (permalink / raw)
  To: daniela-spit; +Cc: Help Gnu Emacs

daniela-spit@gmx.it writes:

>> Sent: Friday, November 27, 2020 at 7:51 AM
>> From: "Arthur Miller" <arthur.miller@live.com>
>> To: daniela-spit@gmx.it
>> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> Subject: Re: .Re: Org Capture Template
>>
>> daniela-spit@gmx.it writes:
>>
>> > Have you tried it?  Am still getting "Invalid Capture Template".
>> Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
>> even looking at it; I am sorry:
>
> If you were doing it for the glory, it backfired.

Which? No; I saw it was missing the ending parenthesis;

The second one works; i tried it.

And yes, it is because of evaluation as Jean told you.

>> (setq org-capture-templates
>>
>>    `( ("t" "Todo" entry
>>        (file "~/Dokument/notes.org")
>>          ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>>                  "Detail: %?\n"
>>                  "Entered: %T\n  Link: %a\n") )))
>>
>>
>>
>> >> Sent: Friday, November 27, 2020 at 6:34 AM
>> >> From: "Arthur Miller" <arthur.miller@live.com>
>> >> To: daniela-spit@gmx.it
>> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> >> Subject: Re: Org Capture Template
>> >>
>> >> daniela-spit@gmx.it writes:
>> >>
>> >> > I am writing an Org Capture Template.  But I want to use concat
>> >> > to keep indentation.  But it is giving me "Invalid capture template".
>> >> >
>> >> > (setq org-capture-templates
>> >> >
>> >> >    '( ("t" "Todo" entry
>> >> >          (file "~/02history/rcl.org")
>> >> >          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>> >> >                  "Detail: %?\n"
>> >> >                  "Entered: %T\n  Link: %a\n") ))
>> >> >
>> >> >
>> >> > -------
>> >> >
>> >> > (setq org-capture-templates
>> >> >
>> >> >    '( ("t" "Todo" entry
>> >> >          (file "~/02history/rcl.org")
>> >> > "* TODO %^{Heading}\n  Brief: %^{Brief}\n
>> >> > Detail: %?\n
>> >> > Entered: %T\n  Link: %a\n") ))
>> >> >
>> >> > -------
>> >>
>> >> This one works:
>> >>
>> >> (setq org-capture-templates
>> >>
>> >>    '( ("t" "Todo" entry
>> >>          (file "~/02history/rcl.org")
>> >>          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>> >>                  "Detail: %?\n"
>> >>                  "Entered: %T\n  Link: %a\n") )))
>> >>
>> >> I suggest you put this into your init file:
>> >>
>> >> (setq show-paren-style 'expression)
>> >> (show-paren-mode t)
>> >>
>> >> It will be much easier to see when you miss a parenthesis next time if
>> >> you let Emacs match parenthesis for you and syntax colour entire
>> >> expressions between matching parenthesis.
>> >>
>> >>
>> >>
>>
>>



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

* Re: .Re: Org Capture Template
  2020-11-27  7:27         ` Arthur Miller
@ 2020-11-27  7:48           ` daniela-spit
  2020-11-27  8:55             ` Arthur Miller
  0 siblings, 1 reply; 19+ messages in thread
From: daniela-spit @ 2020-11-27  7:48 UTC (permalink / raw)
  To: Arthur Miller; +Cc: Help Gnu Emacs



> Sent: Friday, November 27, 2020 at 8:27 AM
> From: "Arthur Miller" <arthur.miller@live.com>
> To: daniela-spit@gmx.it
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: .Re: Org Capture Template
>
> daniela-spit@gmx.it writes:
>
> >> Sent: Friday, November 27, 2020 at 7:51 AM
> >> From: "Arthur Miller" <arthur.miller@live.com>
> >> To: daniela-spit@gmx.it
> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> Subject: Re: .Re: Org Capture Template
> >>
> >> daniela-spit@gmx.it writes:
> >>
> >> > Have you tried it?  Am still getting "Invalid Capture Template".
> >> Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
> >> even looking at it; I am sorry:
> >
> > If you were doing it for the glory, it backfired.
>
> Which? No; I saw it was missing the ending parenthesis;
>
> The second one works; i tried it.

You mean the second one I wrote?  Yes that worked.  So will continue doing that way.

> And yes, it is because of evaluation as Jean told you.
>
> >> (setq org-capture-templates
> >>
> >>    `( ("t" "Todo" entry
> >>        (file "~/Dokument/notes.org")
> >>          ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >>                  "Detail: %?\n"
> >>                  "Entered: %T\n  Link: %a\n") )))
> >>
> >>
> >>
> >> >> Sent: Friday, November 27, 2020 at 6:34 AM
> >> >> From: "Arthur Miller" <arthur.miller@live.com>
> >> >> To: daniela-spit@gmx.it
> >> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> >> Subject: Re: Org Capture Template
> >> >>
> >> >> daniela-spit@gmx.it writes:
> >> >>
> >> >> > I am writing an Org Capture Template.  But I want to use concat
> >> >> > to keep indentation.  But it is giving me "Invalid capture template".
> >> >> >
> >> >> > (setq org-capture-templates
> >> >> >
> >> >> >    '( ("t" "Todo" entry
> >> >> >          (file "~/02history/rcl.org")
> >> >> >          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >> >> >                  "Detail: %?\n"
> >> >> >                  "Entered: %T\n  Link: %a\n") ))
> >> >> >
> >> >> >
> >> >> > -------
> >> >> >
> >> >> > (setq org-capture-templates
> >> >> >
> >> >> >    '( ("t" "Todo" entry
> >> >> >          (file "~/02history/rcl.org")
> >> >> > "* TODO %^{Heading}\n  Brief: %^{Brief}\n
> >> >> > Detail: %?\n
> >> >> > Entered: %T\n  Link: %a\n") ))
> >> >> >
> >> >> > -------
> >> >>
> >> >> This one works:
> >> >>
> >> >> (setq org-capture-templates
> >> >>
> >> >>    '( ("t" "Todo" entry
> >> >>          (file "~/02history/rcl.org")
> >> >>          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >> >>                  "Detail: %?\n"
> >> >>                  "Entered: %T\n  Link: %a\n") )))
> >> >>
> >> >> I suggest you put this into your init file:
> >> >>
> >> >> (setq show-paren-style 'expression)
> >> >> (show-paren-mode t)
> >> >>
> >> >> It will be much easier to see when you miss a parenthesis next time if
> >> >> you let Emacs match parenthesis for you and syntax colour entire
> >> >> expressions between matching parenthesis.
> >> >>
> >> >>
> >> >>
> >>
> >>
>



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

* Re: .Re: Org Capture Template
  2020-11-27  7:48           ` daniela-spit
@ 2020-11-27  8:55             ` Arthur Miller
  2020-11-27  9:31               ` daniela-spit
  0 siblings, 1 reply; 19+ messages in thread
From: Arthur Miller @ 2020-11-27  8:55 UTC (permalink / raw)
  To: daniela-spit; +Cc: Help Gnu Emacs

daniela-spit@gmx.it writes:

>> Sent: Friday, November 27, 2020 at 8:27 AM
>> From: "Arthur Miller" <arthur.miller@live.com>
>> To: daniela-spit@gmx.it
>> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> Subject: Re: .Re: Org Capture Template
>>
>> daniela-spit@gmx.it writes:
>>
>> >> Sent: Friday, November 27, 2020 at 7:51 AM
>> >> From: "Arthur Miller" <arthur.miller@live.com>
>> >> To: daniela-spit@gmx.it
>> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> >> Subject: Re: .Re: Org Capture Template
>> >>
>> >> daniela-spit@gmx.it writes:
>> >>
>> >> > Have you tried it?  Am still getting "Invalid Capture Template".
>> >> Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
>> >> even looking at it; I am sorry:
>> >
>> > If you were doing it for the glory, it backfired.
>>
>> Which? No; I saw it was missing the ending parenthesis;
>>
>> The second one works; i tried it.
>
> You mean the second one I wrote?  Yes that worked.  So will continue doing that way.
>
>> And yes, it is because of evaluation as Jean told you.
No; the second one I sent you :-).

(setq org-capture-templates

    `( ("t" "Todo" entry
        (file "~/Dokument/notes.org")
          ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
                  "Detail: %?\n"
                  "Entered: %T\n  Link: %a\n") )))



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

* Re: .Re: Org Capture Template
  2020-11-27  8:55             ` Arthur Miller
@ 2020-11-27  9:31               ` daniela-spit
  2020-11-27 10:32                 ` daniela-spit
  0 siblings, 1 reply; 19+ messages in thread
From: daniela-spit @ 2020-11-27  9:31 UTC (permalink / raw)
  To: Arthur Miller; +Cc: Help Gnu Emacs



> Sent: Friday, November 27, 2020 at 9:55 AM
> From: "Arthur Miller" <arthur.miller@live.com>
> To: daniela-spit@gmx.it
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: .Re: Org Capture Template
>
> daniela-spit@gmx.it writes:
>
> >> Sent: Friday, November 27, 2020 at 8:27 AM
> >> From: "Arthur Miller" <arthur.miller@live.com>
> >> To: daniela-spit@gmx.it
> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> Subject: Re: .Re: Org Capture Template
> >>
> >> daniela-spit@gmx.it writes:
> >>
> >> >> Sent: Friday, November 27, 2020 at 7:51 AM
> >> >> From: "Arthur Miller" <arthur.miller@live.com>
> >> >> To: daniela-spit@gmx.it
> >> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> >> Subject: Re: .Re: Org Capture Template
> >> >>
> >> >> daniela-spit@gmx.it writes:
> >> >>
> >> >> > Have you tried it?  Am still getting "Invalid Capture Template".
> >> >> Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
> >> >> even looking at it; I am sorry:
> >> >
> >> > If you were doing it for the glory, it backfired.
> >>
> >> Which? No; I saw it was missing the ending parenthesis;
> >>
> >> The second one works; i tried it.
> >
> > You mean the second one I wrote?  Yes that worked.  So will continue doing that way.
> >
> >> And yes, it is because of evaluation as Jean told you.
> No; the second one I sent you :-).

Yes I have tried it.  But still getting the Invalid comma.
Is it just a comma before (concat ?


> (setq org-capture-templates
>
>     `( ("t" "Todo" entry
>         (file "~/Dokument/notes.org")
>           ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>                   "Detail: %?\n"
>                   "Entered: %T\n  Link: %a\n") )))
>



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

* Re: .Re: Org Capture Template
  2020-11-27  9:31               ` daniela-spit
@ 2020-11-27 10:32                 ` daniela-spit
  2020-11-27 16:49                   ` Arthur Miller
  0 siblings, 1 reply; 19+ messages in thread
From: daniela-spit @ 2020-11-27 10:32 UTC (permalink / raw)
  To: daniela-spit; +Cc: Help Gnu Emacs, Arthur Miller

Can one have multiple org-capture-templates, instead than having just
a single one for different types of capture items?

> Sent: Friday, November 27, 2020 at 10:31 AM
> From: daniela-spit@gmx.it
> To: "Arthur Miller" <arthur.miller@live.com>
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: .Re: Org Capture Template
>
>
>
> > Sent: Friday, November 27, 2020 at 9:55 AM
> > From: "Arthur Miller" <arthur.miller@live.com>
> > To: daniela-spit@gmx.it
> > Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> > Subject: Re: .Re: Org Capture Template
> >
> > daniela-spit@gmx.it writes:
> >
> > >> Sent: Friday, November 27, 2020 at 8:27 AM
> > >> From: "Arthur Miller" <arthur.miller@live.com>
> > >> To: daniela-spit@gmx.it
> > >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> > >> Subject: Re: .Re: Org Capture Template
> > >>
> > >> daniela-spit@gmx.it writes:
> > >>
> > >> >> Sent: Friday, November 27, 2020 at 7:51 AM
> > >> >> From: "Arthur Miller" <arthur.miller@live.com>
> > >> >> To: daniela-spit@gmx.it
> > >> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> > >> >> Subject: Re: .Re: Org Capture Template
> > >> >>
> > >> >> daniela-spit@gmx.it writes:
> > >> >>
> > >> >> > Have you tried it?  Am still getting "Invalid Capture Template".
> > >> >> Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
> > >> >> even looking at it; I am sorry:
> > >> >
> > >> > If you were doing it for the glory, it backfired.
> > >>
> > >> Which? No; I saw it was missing the ending parenthesis;
> > >>
> > >> The second one works; i tried it.
> > >
> > > You mean the second one I wrote?  Yes that worked.  So will continue doing that way.
> > >
> > >> And yes, it is because of evaluation as Jean told you.
> > No; the second one I sent you :-).
>
> Yes I have tried it.  But still getting the Invalid comma.
> Is it just a comma before (concat ?
>
>
> > (setq org-capture-templates
> >
> >     `( ("t" "Todo" entry
> >         (file "~/Dokument/notes.org")
> >           ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >                   "Detail: %?\n"
> >                   "Entered: %T\n  Link: %a\n") )))
> >
>
>



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

* Re: .Re: Org Capture Template
  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
  0 siblings, 2 replies; 19+ messages in thread
From: Arthur Miller @ 2020-11-27 16:49 UTC (permalink / raw)
  To: daniela-spit; +Cc: Help Gnu Emacs

daniela-spit@gmx.it writes:

> Can one have multiple org-capture-templates, instead than having just
> a single one for different types of capture items?
You can have as many as you want, as long as they are on different key
binding; if that is what you ask.

Yes, that was comma before ,(concat....
and that was backtic `( ("t" ...

>> Sent: Friday, November 27, 2020 at 10:31 AM
>> From: daniela-spit@gmx.it
>> To: "Arthur Miller" <arthur.miller@live.com>
>> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> Subject: Re: .Re: Org Capture Template
>>
>>
>>
>> > Sent: Friday, November 27, 2020 at 9:55 AM
>> > From: "Arthur Miller" <arthur.miller@live.com>
>> > To: daniela-spit@gmx.it
>> > Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> > Subject: Re: .Re: Org Capture Template
>> >
>> > daniela-spit@gmx.it writes:
>> >
>> > >> Sent: Friday, November 27, 2020 at 8:27 AM
>> > >> From: "Arthur Miller" <arthur.miller@live.com>
>> > >> To: daniela-spit@gmx.it
>> > >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> > >> Subject: Re: .Re: Org Capture Template
>> > >>
>> > >> daniela-spit@gmx.it writes:
>> > >>
>> > >> >> Sent: Friday, November 27, 2020 at 7:51 AM
>> > >> >> From: "Arthur Miller" <arthur.miller@live.com>
>> > >> >> To: daniela-spit@gmx.it
>> > >> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> > >> >> Subject: Re: .Re: Org Capture Template
>> > >> >>
>> > >> >> daniela-spit@gmx.it writes:
>> > >> >>
>> > >> >> > Have you tried it?  Am still getting "Invalid Capture Template".
>> > >> >> Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
>> > >> >> even looking at it; I am sorry:
>> > >> >
>> > >> > If you were doing it for the glory, it backfired.
>> > >>
>> > >> Which? No; I saw it was missing the ending parenthesis;
>> > >>
>> > >> The second one works; i tried it.
>> > >
>> > > You mean the second one I wrote?  Yes that worked.  So will continue doing that way.
>> > >
>> > >> And yes, it is because of evaluation as Jean told you.
>> > No; the second one I sent you :-).
>>
>> Yes I have tried it.  But still getting the Invalid comma.
>> Is it just a comma before (concat ?
>>
>>
>> > (setq org-capture-templates
>> >
>> >     `( ("t" "Todo" entry
>> >         (file "~/Dokument/notes.org")
>> >           ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>> >                   "Detail: %?\n"
>> >                   "Entered: %T\n  Link: %a\n") )))
>> >
>>
>>



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

* Re: .Re: Org Capture Template
  2020-11-27 16:49                   ` Arthur Miller
@ 2020-11-27 17:46                     ` daniela-spit
  2020-11-27 19:52                     ` daniela-spit
  1 sibling, 0 replies; 19+ messages in thread
From: daniela-spit @ 2020-11-27 17:46 UTC (permalink / raw)
  To: Arthur Miller; +Cc: Help Gnu Emacs

> Sent: Friday, November 27, 2020 at 5:49 PM
> From: "Arthur Miller" <arthur.miller@live.com>
> To: daniela-spit@gmx.it
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: .Re: Org Capture Template
>
> daniela-spit@gmx.it writes:
>
> > Can one have multiple org-capture-templates, instead than having just
> > a single one for different types of capture items?
> You can have as many as you want, as long as they are on different key
> binding; if that is what you ask.
>
> Yes, that was comma before ,(concat....
> and that was backtic `( ("t" ...

I see.  The backtick!

> >> Sent: Friday, November 27, 2020 at 10:31 AM
> >> From: daniela-spit@gmx.it
> >> To: "Arthur Miller" <arthur.miller@live.com>
> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> Subject: Re: .Re: Org Capture Template
> >>
> >>
> >>
> >> > Sent: Friday, November 27, 2020 at 9:55 AM
> >> > From: "Arthur Miller" <arthur.miller@live.com>
> >> > To: daniela-spit@gmx.it
> >> > Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> > Subject: Re: .Re: Org Capture Template
> >> >
> >> > daniela-spit@gmx.it writes:
> >> >
> >> > >> Sent: Friday, November 27, 2020 at 8:27 AM
> >> > >> From: "Arthur Miller" <arthur.miller@live.com>
> >> > >> To: daniela-spit@gmx.it
> >> > >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> > >> Subject: Re: .Re: Org Capture Template
> >> > >>
> >> > >> daniela-spit@gmx.it writes:
> >> > >>
> >> > >> >> Sent: Friday, November 27, 2020 at 7:51 AM
> >> > >> >> From: "Arthur Miller" <arthur.miller@live.com>
> >> > >> >> To: daniela-spit@gmx.it
> >> > >> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> > >> >> Subject: Re: .Re: Org Capture Template
> >> > >> >>
> >> > >> >> daniela-spit@gmx.it writes:
> >> > >> >>
> >> > >> >> > Have you tried it?  Am still getting "Invalid Capture Template".
> >> > >> >> Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
> >> > >> >> even looking at it; I am sorry:
> >> > >> >
> >> > >> > If you were doing it for the glory, it backfired.
> >> > >>
> >> > >> Which? No; I saw it was missing the ending parenthesis;
> >> > >>
> >> > >> The second one works; i tried it.
> >> > >
> >> > > You mean the second one I wrote?  Yes that worked.  So will continue doing that way.
> >> > >
> >> > >> And yes, it is because of evaluation as Jean told you.
> >> > No; the second one I sent you :-).
> >>
> >> Yes I have tried it.  But still getting the Invalid comma.
> >> Is it just a comma before (concat ?
> >>
> >>
> >> > (setq org-capture-templates
> >> >
> >> >     `( ("t" "Todo" entry
> >> >         (file "~/Dokument/notes.org")
> >> >           ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >> >                   "Detail: %?\n"
> >> >                   "Entered: %T\n  Link: %a\n") )))
> >> >
> >>
> >>
>
>



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

* Re: .Re: Org Capture Template
  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
  1 sibling, 1 reply; 19+ messages in thread
From: daniela-spit @ 2020-11-27 19:52 UTC (permalink / raw)
  To: Arthur Miller; +Cc: Help Gnu Emacs



> Sent: Friday, November 27, 2020 at 5:49 PM
> From: "Arthur Miller" <arthur.miller@live.com>
> To: daniela-spit@gmx.it
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: .Re: Org Capture Template
>
> daniela-spit@gmx.it writes:
>
> > Can one have multiple org-capture-templates, instead than having just
> > a single one for different types of capture items?
> You can have as many as you want, as long as they are on different key
> binding; if that is what you ask.

Suppose two users have each one file with org-capture-templates.
Can one call one or the other using a keybinding without requiring
the two to be integrated within one org-capture-templates construct?


> Yes, that was comma before ,(concat....
> and that was backtic `( ("t" ...
>
> >> Sent: Friday, November 27, 2020 at 10:31 AM
> >> From: daniela-spit@gmx.it
> >> To: "Arthur Miller" <arthur.miller@live.com>
> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> Subject: Re: .Re: Org Capture Template
> >>
> >>
> >>
> >> > Sent: Friday, November 27, 2020 at 9:55 AM
> >> > From: "Arthur Miller" <arthur.miller@live.com>
> >> > To: daniela-spit@gmx.it
> >> > Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> > Subject: Re: .Re: Org Capture Template
> >> >
> >> > daniela-spit@gmx.it writes:
> >> >
> >> > >> Sent: Friday, November 27, 2020 at 8:27 AM
> >> > >> From: "Arthur Miller" <arthur.miller@live.com>
> >> > >> To: daniela-spit@gmx.it
> >> > >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> > >> Subject: Re: .Re: Org Capture Template
> >> > >>
> >> > >> daniela-spit@gmx.it writes:
> >> > >>
> >> > >> >> Sent: Friday, November 27, 2020 at 7:51 AM
> >> > >> >> From: "Arthur Miller" <arthur.miller@live.com>
> >> > >> >> To: daniela-spit@gmx.it
> >> > >> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> > >> >> Subject: Re: .Re: Org Capture Template
> >> > >> >>
> >> > >> >> daniela-spit@gmx.it writes:
> >> > >> >>
> >> > >> >> > Have you tried it?  Am still getting "Invalid Capture Template".
> >> > >> >> Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
> >> > >> >> even looking at it; I am sorry:
> >> > >> >
> >> > >> > If you were doing it for the glory, it backfired.
> >> > >>
> >> > >> Which? No; I saw it was missing the ending parenthesis;
> >> > >>
> >> > >> The second one works; i tried it.
> >> > >
> >> > > You mean the second one I wrote?  Yes that worked.  So will continue doing that way.
> >> > >
> >> > >> And yes, it is because of evaluation as Jean told you.
> >> > No; the second one I sent you :-).
> >>
> >> Yes I have tried it.  But still getting the Invalid comma.
> >> Is it just a comma before (concat ?
> >>
> >>
> >> > (setq org-capture-templates
> >> >
> >> >     `( ("t" "Todo" entry
> >> >         (file "~/Dokument/notes.org")
> >> >           ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >> >                   "Detail: %?\n"
> >> >                   "Entered: %T\n  Link: %a\n") )))
> >> >
> >>
> >>
>
>



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

* Re: .Re: Org Capture Template
  2020-11-27 19:52                     ` daniela-spit
@ 2020-11-27 21:03                       ` Arthur Miller
  0 siblings, 0 replies; 19+ messages in thread
From: Arthur Miller @ 2020-11-27 21:03 UTC (permalink / raw)
  To: daniela-spit; +Cc: Help Gnu Emacs

daniela-spit@gmx.it writes:

>> Sent: Friday, November 27, 2020 at 5:49 PM
>> From: "Arthur Miller" <arthur.miller@live.com>
>> To: daniela-spit@gmx.it
>> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> Subject: Re: .Re: Org Capture Template
>>
>> daniela-spit@gmx.it writes:
>>
>> > Can one have multiple org-capture-templates, instead than having just
>> > a single one for different types of capture items?
>> You can have as many as you want, as long as they are on different key
>> binding; if that is what you ask.
>
> Suppose two users have each one file with org-capture-templates.
> Can one call one or the other using a keybinding without requiring
> the two to be integrated within one org-capture-templates construct?

You mean if you can add different capture templates? You can add as many
as you want from where you want; it is just a list so you can use list
manipulation routines to change it. You can use add-to-list instead of
setq list: 

(add-to-list 'org-capture-template '( ... )) instead of (setq
org-capture-template '( ... ))

No idea how it will work if you have capture tamplates on same key
though; I guess last one will take precedence, but I don't know.




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

* Re: Org Capture Template
  2020-11-27  6:13   ` daniela-spit
  2020-11-27  6:30     ` Jean Louis
@ 2020-11-27 21:03     ` Michael Heerdegen
  1 sibling, 0 replies; 19+ messages in thread
From: Michael Heerdegen @ 2020-11-27 21:03 UTC (permalink / raw)
  To: help-gnu-emacs

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.




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

end of thread, other threads:[~2020-11-27 21:03 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.