变量“org-mobile-directory”必须指向现有目录。多平台设置,操作方法

变量“org-mobile-directory”必须指向现有目录。多平台设置,操作方法

我在 Mac 上配置了 emacs org-mode,它工作正常,并且我的 org 文件和 MobileOrg 文件位于我的 DropBox 文件夹( ~/DropBox/ )内,详细信息如下:

;; Set to the location of your Org files on your local system
(setq org-directory "~/DropBox/org")
;; Set to the name of the file where new notes will be stored
(setq org-mobile-inbox-for-pull "~/DropBox/org/flagged.org")
;; Set to <your Dropbox root directory>/MobileOrg.
(setq org-mobile-directory "~/Dropbox/MobileOrg")

现在,我想让我的 emacs 设置在 Windows 机器上正常工作。我已经能够让它读取通过符号链接配置共享的 .emacs 文件和 emacs.d 文件夹。

一切似乎都正常工作,只是当我想在 Windows 上执行 org-mobile-pull 或 org-mobile-push 时出现以下错误:“变量org-mobile-directory必须指向现有目录”

问题似乎是 emacs 没有配置为读取或指向 org-mobile 目录,根据 .emacs 中设置的路径(例如 =“~/DropBox/............”)。

我在网上找到了一些信息,这些信息指出要在 .emacs 上设置一个参数,以便它在 Windows 上运行时能够识别,它应该查看目录结构。

现在,我应该如何恰当地完成这一任务?

我发现了一些例子:

;;在 Windows 上 (if (eq system-type 'windows-nt) (progn (setq default-directory "C:\Usuarios/User/") ) )

但它似乎没有发挥应有的作用。

谢谢你的帮助。

相关内容