Kyle Meyer <k...@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