diff options
author | Alan Pearce | 2017-04-28 11:46:45 +0200 |
---|---|---|
committer | Alan Pearce | 2017-04-28 11:46:45 +0200 |
commit | d5bcbda581756736950ffcc37c400ce00b18fe42 (patch) | |
tree | 70df4e42b47064978fba3617ec8a9850116164f1 /emacs/.emacs.d/init.org | |
parent | 8922442a7409bba0fcc4a8948bafee961f40dcda (diff) | |
download | nixfiles-d5bcbda581756736950ffcc37c400ce00b18fe42.tar.lz nixfiles-d5bcbda581756736950ffcc37c400ce00b18fe42.tar.zst nixfiles-d5bcbda581756736950ffcc37c400ce00b18fe42.zip |
Emacs: remove org-mobile setup
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r-- | emacs/.emacs.d/init.org | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 38d572b3..9f3f3097 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1656,49 +1656,6 @@ I can use this to keep a journal. I should use it. (org-journal-read-or-display-entry (yesterday-time))))) #+END_SRC -**** org-mobile - -#+BEGIN_SRC emacs-lisp -(defun ap/org-mobile-pull (descriptor action file) - (org-mobile-pull)) -(use-package org-mobile - :defer 30 - :ensure nil - :disabled t - :config (progn - (setq org-mobile-directory "~/Mobile/Org" - org-mobile-inbox-for-pull "~/Mobile/Org/from-mobile.org") - (defvar org-mobile-push-timer nil - "Timer that `org-mobile-push-timer' used to reschedule itself, or nil.") - - (defun org-mobile-push-with-delay (secs) - (when org-mobile-push-timer - (cancel-timer org-mobile-push-timer)) - (setq org-mobile-push-timer - (run-with-idle-timer - (* 1 secs) nil 'org-mobile-push))) - - (add-hook 'after-save-hook - (lambda () - (when (eq major-mode 'org-mode) - (dolist (file (org-mobile-files-alist)) - (if (string= (file-truename (expand-file-name (car file))) - (file-truename (buffer-file-name))) - (org-mobile-push-with-delay 30)))))) - - (run-at-time "00:05" 86400 '(lambda () (org-mobile-push-with-delay 1))) ;; refreshes agenda file each day - (org-mobile-pull) ;; run org-mobile-pull at startup - - (defvar org-mobile-watcher nil) - (when file-notify--library - (let ((org-file (expand-file-name - (concat - (file-name-as-directory org-mobile-directory) - org-mobile-capture-file)))) - (setq org-mobile-watcher - (file-notify-add-watch org-file '(change) #'ap/org-mobile-pull)))))) -#+END_SRC - **** org-caldav I’ve setup CalDAV on my server, it would be nice to use it directly |