8

修改 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.
neoserver,ios ssh client

修改 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


Recommend

  • 132

    README.md org-mode for SpaceVim This plugin is a fork of VimOrganizer

  • 93
    • emacscast.rakhim.org 6 years ago
    • Cache

    EmacsCast 3 - Org mode

    An amazingly powerful piece of software

  • 24

    在Go语言中,变量可以声明之后再赋值,也可以不声明,直接就用。 var strM string strM = "Hello Golang" strN := "Hello Golang" 我刚开始的时候有点困惑,一把锁为什么要配两把钥匙,使用一种方法不就香吗?...

  • 11
    • www.itwork.club 4 years ago
    • Cache

    使用 CSS 实现多行省略

    使用 CSS 实现多行省略漂洋过海来看你IT俱乐部-码出人生使用 CSS 实现多行省略Dec 17, 2020CSS6

  • 21
    • renfufei.blog.csdn.net 4 years ago
    • Cache

    CSS高级技巧:自动省略左侧文本

    难以置信! 浏览器和CSS规范居然支持自动省略左侧的文本了。 通过 text-overflow: ellipsis, 搭配固定的 width 属性, 以及overflow: hidden 样式, 就可以实现这样的功能; 能用CSS实现,就不需要编写复杂的 JavaScript 代...

  • 6

    Switch中省略了break语句及缺少default导致的代码缺陷 什么是Switch中省略了break语句导致的代码缺陷? break语句通常用在循环语句和switch语句中。当break用于switch语句中时,可使程...

  • 11

    Go泛型系列:再简化,省略接口 这是Go泛型系列文章。 其它Go泛型文章: 如果你一直关注Go泛型的设计和实现,一定知道Go泛型代码实现是通过类型参数(type parameter)实现的...

  • 10

    Visual Studio:优化了复制/移动省略 作者:漫漫开发路 2022-10-26 11:00:06 当 C++ 函数中的 return 关键字后跟非内置类型的表达式时,执行该 return 语句会将表达式的结果复制到调用函数的返回槽(Return Slot)中...

  • 7

    在业务中,有这么一种场景,表格下的某一列 ID 值,文本超长了,正常而言会是这样:

  • 4

    今天在移动端开发的时候,遇到一个块级文本省略ios手机无效的问题,这种问题形成的原因是什么呢?chrome里面是正常的,为啥ios里面不行?解决方案又是什么呢? 文本省略回顾 我很早很早之前的文章介绍了文本省略的方式,其中有一行和多行,请看:

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK