emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [OT] Custom remember template
@ 2011-05-11  1:56 Marcelo de Moraes Serpa
  2011-05-11  3:08 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Marcelo de Moraes Serpa @ 2011-05-11  1:56 UTC (permalink / raw)
  To: Org Mode

Hey list,

I want a truly custom string to be output by the org-remember
template, so I thought I could do something like:


     ("Journal Entry" ?j (concat "* " (mycustomfunc)))

Since "mycustomfunc" and concat both return strings, I thought I
wouldn't have a problem...

But it fails with:

let*: Wrong type argument: char-or-string-p, (concat "kd" "d")

I'm not yet that good with elisp to debug that. Could someone give a
hand ? Or it's not possible at all?

Thanks,

Marcelo.

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

* Re: [OT] Custom remember template
  2011-05-11  1:56 [OT] Custom remember template Marcelo de Moraes Serpa
@ 2011-05-11  3:08 ` Nick Dokos
  2011-05-11  3:36   ` Marcelo de Moraes Serpa
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2011-05-11  3:08 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: nicholas.dokos, Org Mode

Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:


> I want a truly custom string to be output by the org-remember
> template, so I thought I could do something like:
> 
> 
>      ("Journal Entry" ?j (concat "* " (mycustomfunc)))
> 
> Since "mycustomfunc" and concat both return strings, I thought I
> wouldn't have a problem...
> 
> But it fails with:
> 
> let*: Wrong type argument: char-or-string-p, (concat "kd" "d")
> 
> I'm not yet that good with elisp to debug that. Could someone give a
> hand ? Or it's not possible at all?
> 

org-remember is more or less obsolete by now.  You should consider using
org-capture instead: it gives you much more flexibility (including the
ability to define a function that returns the template to be used).

Nick

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

* Re: [OT] Custom remember template
  2011-05-11  3:08 ` Nick Dokos
@ 2011-05-11  3:36   ` Marcelo de Moraes Serpa
  0 siblings, 0 replies; 3+ messages in thread
From: Marcelo de Moraes Serpa @ 2011-05-11  3:36 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Org Mode

Hi Nick,

Nice to know that! I'll try org-catpure.

Thanks,

Marcelo.

On Tue, May 10, 2011 at 10:08 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:
>
>
>> I want a truly custom string to be output by the org-remember
>> template, so I thought I could do something like:
>>
>>
>>      ("Journal Entry" ?j (concat "* " (mycustomfunc)))
>>
>> Since "mycustomfunc" and concat both return strings, I thought I
>> wouldn't have a problem...
>>
>> But it fails with:
>>
>> let*: Wrong type argument: char-or-string-p, (concat "kd" "d")
>>
>> I'm not yet that good with elisp to debug that. Could someone give a
>> hand ? Or it's not possible at all?
>>
>
> org-remember is more or less obsolete by now.  You should consider using
> org-capture instead: it gives you much more flexibility (including the
> ability to define a function that returns the template to be used).
>
> Nick
>
>

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

end of thread, other threads:[~2011-05-11  3:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-11  1:56 [OT] Custom remember template Marcelo de Moraes Serpa
2011-05-11  3:08 ` Nick Dokos
2011-05-11  3:36   ` Marcelo de Moraes Serpa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).