瀏覽代碼

Turn off code fontification by default; supply customize interface

	* org.el (org-src-fontify-natively): Set to nil by default.
	Supply cutomize interface.
Dan Davison 14 年之前
父節點
當前提交
569ba0eee8
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      lisp/org.el

+ 5 - 2
lisp/org.el

@@ -5022,8 +5022,11 @@ will be prompted for."
 				'(display t invisible t intangible t))
 				'(display t invisible t intangible t))
 	t)))
 	t)))
 
 
-(defvar org-src-fontify-natively t
-  "When non-nil, fontify code in code blocks.")
+(defcustom org-src-fontify-natively nil
+  "When non-nil, fontify code in code blocks."
+  :type 'boolean
+  :group 'org-appearance
+  :group 'org-babel)
 
 
 (defun org-fontify-meta-lines-and-blocks (limit)
 (defun org-fontify-meta-lines-and-blocks (limit)
   "Fontify #+ lines and blocks, in the correct ways."
   "Fontify #+ lines and blocks, in the correct ways."