我想知道 org-mode 中是否有任何功能可以使我能够使用秘密结构进行操作,即:我在编辑时可以看到的结构,但在导出时被视为不存在. 它主要是在我导出为 ascii 时导入。
例子:
我想在 .org 文件中这样做:
* Normal heading
** Secret heading 1
Some text 1
** Secret heading 2
Some text 2
** Secret heading 3
Some text 3
Run Code Online (Sandbox Code Playgroud)
要导出到这个:
Normal heading
--------------
Some text 1
Some text 2
Some text 3
Run Code Online (Sandbox Code Playgroud)
使标题保密的东西可以是标签、属性或其他东西,但秘密标题应该是可折叠的。
编辑:
找到了这个解决方案(从这里)(我使用的是 org-mode 7.9.3 f。它不起作用。带有 :ignoreheading: 标签的标题仍然显示:
;; backend aware export preprocess hook
(defun sa-org-export-preprocess-hook ()
"My backend aware export preprocess hook."
(save-excursion
(when (eq org-export-current-backend 'latex)
;; ignoreheading tag …Run Code Online (Sandbox Code Playgroud) 在组织模式(8.2.5)中是否有任何方法可以导出到ascii而不会在.txt文件的每一行末尾插入换行符?
一个好的假设是:
(setq org-ascii-text-width nil)
Run Code Online (Sandbox Code Playgroud)
但是nil不被接受作为参数org-ascii-text-width.
一个不优雅的解决方案是:
(setq org-ascii-text-width 1000)
Run Code Online (Sandbox Code Playgroud)
假设我的段落中没有一个长度超过1000个字符.
如果我:
(setq org-ascii-text-width 10000)
Run Code Online (Sandbox Code Playgroud)
我收到错误:
Stack overflow in regexp matcher
Run Code Online (Sandbox Code Playgroud) 我发现改变emacs边距的唯一方法就是这样:
(add-hook 'window-configuration-change-hook
(lambda ()
(set-window-margins (car (get-buffer-window-list (current-buffer) nil t)) 24 24)))
Run Code Online (Sandbox Code Playgroud)
我想仅在文本模式下调用此设置,并在更改为其他模式时更改回来.有点天真,我试过这个:
(add-hook 'text-mode-hook
(lambda ()
(set-window-margins (car (get-buffer-window-list (current-buffer) nil t)) 24 24)))
Run Code Online (Sandbox Code Playgroud)
但它不起作用.只有在文本模式下缓冲区才能更改边距的正确代码是什么?
当我在 org-mode 8.2.5h 中导出到 ascii 时:
...
Run Code Online (Sandbox Code Playgroud)
导出如下:
…
Run Code Online (Sandbox Code Playgroud)
我该如何防止?
如何从emacs中访问组织模式手册?
我已经看到这个建议:
C-h i m 组织模式 RET
但是在emacs 24.3.1中无法以这种方式使用组织模式手册。是否可以安装melpa软件包或类似的软件包以在emacs信息模式下获取组织手册?