2014-09-02 17:33:19 +00:00
|
|
|
;; Copyright (c) 2013, 2014 Microsoft Corporation. All rights reserved.
|
|
|
|
;; Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
;;
|
|
|
|
;; Author: Soonho Kong
|
|
|
|
;;
|
|
|
|
|
|
|
|
(when (and (package-installed-p 'mmm-mode)
|
|
|
|
(package-installed-p 'lua-mode))
|
|
|
|
(require 'mmm-mode)
|
|
|
|
(require 'mmm-auto)
|
|
|
|
(require 'lua-mode)
|
2014-09-15 07:03:21 +00:00
|
|
|
(setq mmm-global-mode 'maybe)
|
2014-09-02 17:33:19 +00:00
|
|
|
(setq mmm-submode-decoration-level 0)
|
|
|
|
(eval-after-load 'mmm-vars
|
|
|
|
'(progn
|
|
|
|
(mmm-add-group
|
|
|
|
'lean-lua
|
|
|
|
'((lua-inline
|
|
|
|
:submode lua-mode
|
|
|
|
:face mmm-code-submode-face
|
2014-09-15 07:03:21 +00:00
|
|
|
:insert ((?l lean-tag nil @ "(*\n" @ " " _ "" @ "\n*)" @))
|
2014-09-02 17:33:19 +00:00
|
|
|
:front "[(][*]"
|
|
|
|
:back "[*][)]")))
|
2014-09-15 17:22:31 +00:00
|
|
|
(mmm-add-mode-ext-class 'lean-mode "\\.lean" 'lean-lua)))
|
|
|
|
(defun lean-mmm-lua-hook ()
|
|
|
|
(setq-local mmm-parse-when-idle t)
|
|
|
|
(setq-local mmm-idle-timer-delay 0.5)))
|
2014-09-02 17:33:19 +00:00
|
|
|
|
|
|
|
(provide 'lean-mmm-lua)
|