gpt4 book ai didi

emacs - 如何强制 Org-mode 在另一个框架中打开链接?

转载 作者:行者123 更新时间:2023-12-02 23:58:38 24 4
gpt4 key购买 nike

在组织模式下,可以有链接和顶部打开的链接。如 http://orgmode.org/orgcard.txt 列出在组织模式下 C-u C-c C-omouse-3 强制链接在另一个窗口中打开。如何对frames做相应的操作,即如何强制一个链接在另一个frame中打开?

我想要的是 C-c C-o 按默认方式工作,但 C-u C-c C-o 强制在另一个框架中打开链接。

(窗口和框架的区别参见 http://www.gnu.org/software/emacs/manual/html_node/emacs/Frames.html 。)

我在 23.3.1 中运行组织模式 7.6。

最佳答案

我刚刚测试过,您可以通过将 org-open-at-point 包装在 (let ) 中作为自定义函数来使其工作。

在这种情况下,我只是在当前的 org-link-frame-setup 前面加上您想要的 find-file-other-frame 前缀,以确保如果您使用其他链接类型上的命令不会失败。

(defun zin/org-open-other-frame ()
"Jump to bookmark in another frame. See `bookmark-jump' for more."
(interactive)
(let ((org-link-frame-setup (acons 'file 'find-file-other-frame org-link-frame-setup)))
(org-open-at-point)))

我怀疑您需要将其绑定(bind)到除 C-u C-c C-o 之外的按键序列,除非 Emacs 允许您专门将其绑定(bind)到该序列。

关于emacs - 如何强制 Org-mode 在另一个框架中打开链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8881649/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com