如何“链接” emacs中的非组织模式缓冲区 [英] How can I "linkify" a non-org-mode buffer in emacs

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

问题描述


可能重复:

如何使任何emacs缓冲区中的org语法链接看起来像在org-mode?

我不介意使用组织模式,但使用非星号标题。我在如何使用其他标题样式,如twiki --- +或mediawiki == h2 == in org-mode?

I would not mind using org-mode, but with non-asterisk headings. I asked that question in How can I use other heading styles like twiki ---+ or mediawiki == h2 == in org-mode?

但主要的是我想要链接一个缓冲区 - 一个可能是非组织模式的缓冲区。

But the main thing I want is to "linkify" a buffer - a probably non-org-mode buffer.

例如使[[file:/ some / long / path] [display name]]等链接显示为display name,可点击。或者只是[[file:/ some / path]]或其他支持org-mode的链接类型。

E.g. make links such as [[file:/some/long/path][display name]] show just as something like "display name", and clickable. Or just [[file:/some/path]], or the other link types org-mode supports.

问:有没有办法获得这样的链接功能emacs,外部组织模式?

Q: is there a way to get such link functionality in emacs, outside org-mode?

推荐答案

我刚刚创建了一个emacs小模式,使非org组织样式链接模式缓冲区。仍然在进行中,但您可以在这里找到: https:// github。 com / seanohalpin / org-link-minor-mode

I've just created an emacs minor mode that enables org style links in non-org-mode buffers. Still a work-in-progress but you can find it here: https://github.com/seanohalpin/org-link-minor-mode

BTW,这个问题与如何使任何emacs缓冲区中的org语法链接看起来像在org -mode?

BTW, this question is a duplicate of How to make org syntax links in any emacs buffer look like in org-mode?

这篇关于如何“链接” emacs中的非组织模式缓冲区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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