[New package] inherit-org 代替 shrace+,目标是给非org buffer继承org的特性

认真想了许久,也谋划了几天,reddit 上也有人问为什么不把 shrface 和 shrface+ 合并。那么,现在,shrface+ 正式改名为 inherit-org,只是因为不想被 shrface 带偏,shrface 目标是 shr,eww,nov,mu4e 等基于 shr 的包。inherit-org 的目标是给非 org buffer 继承 org 特性。

我的希望是在编程模式下也能直接用org来写备注文档。

因为不依赖于 shr,所以这个包只要加载了 org,就可以运行。

8 个赞

更想知道性能怎么样呢?

因为要用到org的特性,所以肯定有一点的性能损耗。另外,我还在想项目的后续特性,感觉在编程模式下用 org 的特性没什么用,有什么意见可以提一下吗?

个人认为,阅读类模式下更有价值,编程模式没有必要用。

inherit-org使用后,渲染helpful-mode正常,但是info-mode无效? 配置就是按照帮助中的,没加其他内容了。好奇怪?

(with-eval-after-load 'org (require 'inherit-org)

(with-eval-after-load 'info (add-hook 'Info-mode-hook 'inherit-org-mode))

(with-eval-after-load 'helpful (add-hook 'helpful-mode-hook 'inherit-org-mode)))

不好意思,我在Description里面有说,暂时还不支持。

你的description里不是说支持info-mode的啊?

The following major modes are supported at this moment:

  1. w3m mode
  • Inherit org faces
  • inherit-org-mode
    • imenu
    • outline-minor-mode
    • org-indent-mode
  1. Info mode
  • Inherit org faces
  1. helpful mode
  • Inherit org faces
  • inherit-org-mode
    • imenu
    • outline-minor-mode
    • org-indent-mode

不好意思,只是样式继承,等我找到方法,我就加上outline,indent等的支持。

简单的做了一下,虽然不是很完美,感觉还是挺有趣的,上图:

Demo

安装之后,在w3m中有了org结构样式,但是怎么折叠?

折叠没实现。。