【发布时间】:2012-11-15 20:50:07
【问题描述】:
相关问题:org-mode: fontify code blocks natively
我有截至 2012 年 11 月 1 日的最新 org-mode 和 emacs 版本(org 存储在 org-20121105 中)。
我还有emacs-24自带的sql-mode。
我已经把字体化变成了一个:
;; fontify code in code blocks
(setq org-src-fontify-natively t)
然而,这并没有在我的组织文档中字体化。 Java、bash 等都可以工作。
#+BEGIN_SRC SQL
SELECT foo FROM bar
#+END_SRC
当我打开文件 foobar.sql 时,模式指示器显示 SQL[ANSI](我也尝试将其作为源类型),并且字体锁定有效。
提前感谢您的任何提示。
【问题讨论】:
-
setq当然已经评估过了?你能在块中C-c '(C-c 引号)用正确的主模式在新缓冲区中打开它,看看它是否被正确检测到?
标签: emacs org-mode dot-emacs emacs24 sql-mode