emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] backend for todo.txt format (todotxt.com)


From: Stefan Huchler
Subject: Re: [O] backend for todo.txt format (todotxt.com)
Date: Tue, 19 Jan 2016 07:15:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Kyle Meyer <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]