From: Stefan Huchler <stefan.huchler@mail.de>
To: emacs-orgmode@gnu.org
Subject: Re: backend for todo.txt format (todotxt.com)
Date: Tue, 19 Jan 2016 07:15:19 +0100 [thread overview]
Message-ID: <87oaciksco.fsf@jupiter.lan> (raw)
In-Reply-To: 87h9ia155k.fsf@kyleam.com
Kyle Meyer <kyle@kyleam.com> writes:
> if-let has been define in Emacs's subr-x.el since c08f8be (New if-let,
> when-let, thread-first and thread-last macros., 2014-06-30).
is it then that your code will not run if you dont use this autohook
thing? or do I have to be in a orgfile that it works?
(load "~/git/org-todotxt/org-todotxt.el")
(defun spiderbit/org-todotxt-auto-push-all-agendas ()
(interactive)
;; Sync in new tasks from this file and then push out
(org-todotxt-sync "~/notes/test-todo.txt")
;; Just push out to this file, overwriting whatever was there every time.
(org-todotxt-push "~/notes/test-todo.txt")
(org-todotxt-pull "~/notes/test-todo.txt"))
;; Check the docstrings for these variables
(setq org-todotxt-auto-push-function
'spiderbit/org-todotxt-auto-push-all-agendas
org-todotxt-auto-push-delay 1
org-todotxt-auto-push-file-list '("~/notes/organizer.org")
org-todotxt-inbox-for-pull "~/notes/inbox.org")
;; ;; Use settings above and install an auto-push hook
;; (org-todotxt-install-after-save-hook)
thats my code, organizer is a file from me where I have most of my
todos, the rest of the files I created as empty files now, because I was
not shure if that was the problem.
get errors like that:
spiderbit/org-todotxt-auto-push-all-agendas
call-interactively: Wrong number of arguments: (lambda (todotxt-file)
"Pulls in any new tasks from TODOTXT-FILE into
`org-todotxt-inbox-for-pull' and then overwrite it with the result of
`org-todotxt-create-agenda-function'.
New tasks are defined as any task without an org-id marker."
(interactive) (if org-todotxt-inbox-for-pull nil (error "Define the Org
file where new tasks should be pulled into in
`org-todotxt-inbox-for-pull")) (org-todotxt-pull todotxt-file)
(org-todotxt-push todotxt-file)), 0
next prev parent reply other threads:[~2016-01-19 6:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-16 19:59 backend for todo.txt format (todotxt.com) Stefan Huchler
2016-01-16 20:06 ` Rasmus
2016-01-17 2:21 ` Stefan Huchler
2016-01-17 11:47 ` Rasmus
2016-01-17 14:59 ` Stefan Huchler
2016-01-18 23:30 ` Rasmus
2016-01-19 4:31 ` Stefan Huchler
2016-01-17 4:56 ` Stefan Huchler
2016-01-16 20:28 ` Danie Roux
2016-01-19 5:51 ` Stefan Huchler
2016-01-19 5:59 ` Kyle Meyer
2016-01-19 6:15 ` Stefan Huchler [this message]
2016-01-19 6:20 ` Kyle Meyer
2016-02-02 17:11 ` Tim O'Callaghan
2016-01-16 22:30 ` Marcin Borkowski
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=87oaciksco.fsf@jupiter.lan \
--to=stefan.huchler@mail.de \
--cc=emacs-orgmode@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.