如何使任何emacs缓冲区中的org语法链接看起来像在org模式? [英] How to make org syntax links in any emacs buffer look like in org-mode?

查看:131
本文介绍了如何使任何emacs缓冲区中的org语法链接看起来像在org模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用emacs org-mode来管理笔记。通常我希望使用链接到这个文件,我正在其他模式下编辑的文件,如AUCTeX。

I am using emacs org-mode for managing my notes. Often I wish to use links to this notes from files, which I am editing in other modes, like AUCTeX.

看到这里描述性截图。 (我还没有允许在这里张贴图片。)

See here for a descriptive screenshot. (I am not yet allowed to post images here.)

存储和跟踪此链接的效果非常好。但是,我发现读取链接的完整组织语法令人不安: [[file:notes.org :: * note] [Description]] ,这显然不是折叠的在组织模式之外。

Storing and following this links works pretty well. But I find it disturbing to read the full org syntax of the links: [[file:notes.org::*note][Description]], which is obviously not folded outside of org-mode.

我想知道是否有任何小型模式,可将此类链接折叠到可点击的说明,就像在组织模式下一样。

I wonder if there is any minor-mode which provides the folding of such links to a clickable Description, like it is done in org-mode.

推荐答案

您可以使用Org-mode之外的链接。 >

You can use links outside Org-mode.


4.5在Org之外使用链接



您可以插入并遵循具有Org语法的链接只在组织,但在任何Emacs缓冲区。为此,您应该创建两个全局命令,如此(请自己选择合适的全局键):

4.5 Using links outside Org

You can insert and follow links that have Org syntax not only in Org, but in any Emacs buffer. For this, you should create two global commands, like this (please select suitable global keys yourself):

(global-set-key "\C-c L" 'org-insert-link-global)
(global-set-key "\C-c o" 'org-open-at-point-global)


- 来源: Use-links-outside-Org

编辑(2012年11月1日):截至2011年10月,启用类似org的链接的次要模式不存在,但是讨论。现在,小型模式存在,它被称为组织链接 - 次模式和包含在 org-contrib 中。

Edit (1 Nov 2012): As of October 2011 the minor mode enabling org-like links didn't exist, but there were discussions. Now the minor mode exists, it is called org-link-minor-mode and is included in org-contrib.

这篇关于如何使任何emacs缓冲区中的org语法链接看起来像在org模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆