【问题标题】:forbid emacs to open org-mode menu in new frame禁止 emacs 在新框架中打开 org-mode 菜单
【发布时间】:2012-10-25 09:18:56
【问题描述】:

我的 emacs 的 org-mode 在新框架中显示菜单(例如 TODO 菜单,其选项在按 C-c C-t 后出现)。打开 pdf 文件也是如此(它也会在新框架中打开它们)。

我如何告诉 emacs 在同一帧中打开它们作为新缓冲区?

【问题讨论】:

  • C-c C-t runs the command org-todo,打开什么菜单?我猜你如何打开 pdf 文件,C-c C-o 在链接上?这些都是你想在同一个框架中打开的吗?

标签: emacs org-mode


【解决方案1】:

对于打开文件,您可以自定义org-link-frame-setup 变量。这是帮助 (C-h v) 去:

org-link-frame-setup 是在 `org.el' 中定义的变量。

为以下链接设置框架配置。 使用 Emacs 跟踪链接时,显示 此链接在另一个窗口或框架中。该变量可用于 为不同类型的链接设置此项。

对于 FILE,请使用任何
find-file
find-file-other-window
find-file-other-frame

所以您的.emacs 文件中应该执行以下操作(它保留其他所有内容的默认值,但欢迎了解 elisp 的任何人改进此代码):

(setq org-link-frame-setup (quote ((vm . vm-visit-folder-other-frame)
               (vm-imap . vm-visit-imap-folder-other-frame)
               (gnus . org-gnus-no-new-news)
               (file . find-file)
               (wl . wl-other-frame)))
  )

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多