3

修改 org-mode 的省略符号

 3 years ago
source link: https://www.lujun9972.win/blog/2019/09/16/%E4%BF%AE%E6%94%B9-org-mode-%E7%9A%84%E7%9C%81%E7%95%A5%E7%AC%A6%E5%8F%B7/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

修改 org-mode 的省略符号

org-mode 默认使用三个点 (...)来只待隐藏内容。不过我们可以通过修改 org-ellipsis 的值来修改这个表示方式

org-ellipsis is a variable defined in ‘org.el’.
Its value is nil 

  This variable is safe as a file local variable if its value
  satisfies the predicate which is a byte-compiled expression.

Documentation:
The ellipsis to use in the Org mode outline.

When nil, just use the standard three dots.  When a non-empty string,
use that string instead.

The change affects only Org mode (which will then use its own display table).
Changing this requires executing ‘M-x org-mode’ in a buffer to become
effective.

You can customize this variable.

比如我比较喜欢使用 来指待隐藏内容。

(setq org-ellipsis "⤵")

最后的效果如下图所示: screenshot-26.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK