在orgmode中添加注释

查看org文档中的注释方法:

The Org Manual: Comment lines

12.6 Comment lines

Lines starting with zero or more whitespace characters followed by one ‘#’ and a whitespace are treated as comments and, as such, are not exported.

Likewise, regions surrounded by #+BEGIN_COMMENT#+END_COMMENT are not exported.

Finally, a ‘COMMENT’ keyword at the beginning of an entry, but after any other keyword or priority cookie, comments out the entire subtree. In this case, the subtree is not exported and no code block within it is executed either129. The command below helps changing the comment status of a headline.

C-c ;

Toggle the ‘COMMENT’ keyword at the beginning of an entry.

#+BEGIN_COMMENT … #+END_COMMEN 这个方法能用.

但是

Lines starting with zero or more whitespace characters followed by one ‘#’ and a whitespace are treated as comments and, as such, are not exported.

Screenshot%20from%202019-05-27%2008-40-37

是咱的理解有问题吗?

不如自己尝试

1 个赞

「zero or more」指的是空格的数量。

(rx line-start (0+ whitespace) "# ")
1 个赞

# 注释 bang后面加空格就行啊.:grinning:

要区分#+开头的metadata的嘛

换个好主题,什么时候是注释一目了然

image

这是什么主题? ,leuven用着读org,区分也可以

doom-city-lights,对比主打的doom-one更偏向冷色系一点

漂亮…