fix(emacs/lean-mmm-lua): add 'insert' for mmm-insert-region (C-c % l)

Related issue: #74, https://github.com/flycheck/flycheck/issues/349, https://github.com/purcell/mmm-mode/issues/32
This commit is contained in:
Soonho Kong 2014-09-15 00:03:21 -07:00
parent 1527efb108
commit f25f9a8fab

View file

@ -9,7 +9,7 @@
(require 'mmm-mode) (require 'mmm-mode)
(require 'mmm-auto) (require 'mmm-auto)
(require 'lua-mode) (require 'lua-mode)
(setq mmm-global-mode 'buffers-with-submode-classes) (setq mmm-global-mode 'maybe)
(setq mmm-submode-decoration-level 0) (setq mmm-submode-decoration-level 0)
(eval-after-load 'mmm-vars (eval-after-load 'mmm-vars
'(progn '(progn
@ -18,6 +18,7 @@
'((lua-inline '((lua-inline
:submode lua-mode :submode lua-mode
:face mmm-code-submode-face :face mmm-code-submode-face
:insert ((?l lean-tag nil @ "(*\n" @ " " _ "" @ "\n*)" @))
:front "[(][*]" :front "[(][*]"
:back "[*][)]"))) :back "[*][)]")))
(mmm-add-mode-ext-class 'lean-mode "\\.lean" 'lean-lua)))) (mmm-add-mode-ext-class 'lean-mode "\\.lean" 'lean-lua))))