Show how to use tramp to write to the mobile directory

This commit is contained in:
Carsten Dominik 2009-10-18 11:59:04 +02:00
parent d096fac7f7
commit 3874113602
1 changed files with 14 additions and 6 deletions

View File

@ -11711,13 +11711,21 @@ in-buffer settings, but it will understand the logistics of todo state
Org-mode has commands to prepare a directory with files for @i{MobileOrg},
and to read captured notes from there. If Emacs can directly write to the
WebDAV directory accessed by @i{MobileOrg}, just point to this directory
using the variable @code{org-mobile-directory}.
using the variable @code{org-mobile-directory}. Using the @file{tramp}
method, @code{org-mobile-directory} may point to a remote directory
accessible through, for example,
@file{ssh/scp}:
If Emacs cannot access the WebDAV directory directly, you can use a local
directory for staging. Other means must then be used to keep this directory
in sync with the WebDAV directory. In the following example, files are
staged in @file{~/stage}, and Org-mode hooks take care of moving files to and
from the WebDAV directory using @file{scp}.
@smallexample
(setq org-mobile-directory "/scpc:user@@remote.host:org/webdav/")
@end smallexample
If Emacs cannot access the WebDAV directory directly using a @file{tramp}
method, or you prefer to maintain a local copy, you can use a local directory
for staging. Other means must then be used to keep this directory in sync
with the WebDAV directory. In the following example, files are staged in
@file{~/stage}, and Org-mode hooks take care of moving files to and from the
WebDAV directory using @file{scp}.
@smallexample
(setq org-mobile-directory "~/stage/")