feat(lean-mode): enable mmm-parse-when-idle

Related issue: #74
This commit is contained in:
Soonho Kong 2014-09-15 10:22:31 -07:00
parent f94e28ce39
commit 11ff7b5d33
2 changed files with 9 additions and 2 deletions

View file

@ -21,6 +21,9 @@
:insert ((?l lean-tag nil @ "(*\n" @ " " _ "" @ "\n*)" @)) :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)))
(defun lean-mmm-lua-hook ()
(setq-local mmm-parse-when-idle t)
(setq-local mmm-idle-timer-delay 0.5)))
(provide 'lean-mmm-lua) (provide 'lean-mmm-lua)

View file

@ -170,7 +170,11 @@ enabled and disabled respectively.")
(eldoc-mode t)) (eldoc-mode t))
;; company-mode ;; company-mode
(when lean-company-use (when lean-company-use
(company-lean-hook))) (company-lean-hook))
;; mmm-lua-mode
(when (and (package-installed-p 'mmm-mode)
(package-installed-p 'lua-mode))
(lean-mmm-lua-hook)))
;; Automode List ;; Automode List
;;;###autoload ;;;###autoload