summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-04-28 11:46:45 +0200
committerAlan Pearce2017-04-28 11:46:45 +0200
commitd5bcbda581756736950ffcc37c400ce00b18fe42 (patch)
tree70df4e42b47064978fba3617ec8a9850116164f1
parent8922442a7409bba0fcc4a8948bafee961f40dcda (diff)
downloaddotfiles-d5bcbda581756736950ffcc37c400ce00b18fe42.tar.lz
dotfiles-d5bcbda581756736950ffcc37c400ce00b18fe42.tar.zst
dotfiles-d5bcbda581756736950ffcc37c400ce00b18fe42.zip
Emacs: remove org-mobile setup
-rw-r--r--emacs/.emacs.d/init.org43
1 files changed, 0 insertions, 43 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 38d572b..9f3f309 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