* Remember integration
@ 2008-08-08 7:23 Russell Adams
2008-09-07 7:17 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Russell Adams @ 2008-08-08 7:23 UTC (permalink / raw
To: Org Mode List
Is there a way to override the 'remember files requires a headline'
requirement?
I'd like to have a remember template that just appends the template to
a file. In this case I'm using a remember template to try and create a
ledger entry for expenses. It is not an org file.
Using remember is the right place to do it (ie: in place fast data
entry for later), but the org integration is forcing file validation.
Thanks.
------------------------------------------------------------------
Russell Adams RLAdams@AdamsInfoServ.com
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Remember integration
2008-08-08 7:23 Remember integration Russell Adams
@ 2008-09-07 7:17 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-09-07 7:17 UTC (permalink / raw
To: Russell Adams; +Cc: Org Mode List
Hi Russel,
remember-handler-functions is a hook that can contain several
functions. The first function that returns non-nil is assumed to have
done the work, so the other ons are not called.
You can do
(setq remember-handler-functions '(my-ledger-function org-remember-
handler))
and let the first function do the work for ledger entries. It needs
to have a way to identify the corresponding buffer - if that is non-
trivial, then your template can leave some special text that will be
removed by my-ledger-fuction before appending the content to a file.
HTH
- Carsten
On Aug 8, 2008, at 9:23 AM, Russell Adams wrote:
> Is there a way to override the 'remember files requires a headline'
> requirement?
>
> I'd like to have a remember template that just appends the template to
> a file. In this case I'm using a remember template to try and create a
> ledger entry for expenses. It is not an org file.
>
> Using remember is the right place to do it (ie: in place fast data
> entry for later), but the org integration is forcing file validation.
>
> Thanks.
>
> ------------------------------------------------------------------
> Russell Adams RLAdams@AdamsInfoServ.com
>
> PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
>
> Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-07 7:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08 7:23 Remember integration Russell Adams
2008-09-07 7:17 ` Carsten Dominik
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.