From 9728656837bbdb67aa2e05db46c45fc65214b1ea Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 12 Feb 2016 12:27:59 +0900 Subject: [PATCH] Experimental update of adoc-simple-mode --- emacs.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 121d788..8942122 100644 --- a/emacs.el +++ b/emacs.el @@ -1851,10 +1851,17 @@ Commands are searched from ALIST." ;; adoc-simple-mode (when (safe-require-or-eval 'adoc-mode) + (defvar adoc-simple-font-lock-keywords + nil) (define-derived-mode adoc-simple-mode adoc-mode "Adoc-Simple" "Major mode for editing AsciiDoc text files. -This mode is a simplified version of `adoc-mode'.") +This mode is a simplified version of `adoc-mode'." + '(set (make-local-variable 'font-lock-defaults) + '(adoc-simple-font-lock-keywords + nil nil nil nil + (font-lock-multiline . t) + (font-lock-mark-block-function . adoc-font-lock-mark-block-function)))) (add-to-list 'auto-mode-alist '("\\.adoc\\'" . adoc-simple-mode)))