emacs: change mmm-mode config

master
an 2020-08-31 18:40:37 -06:00
parent 69d1565bbb
commit 3e27aca08d
1 changed files with 4 additions and 16 deletions

View File

@ -117,24 +117,13 @@
(defvaralias 'json-reformat:indent-width 'tab-width))
(use-package mmm-mode
:ensure t
:ensure t)
(use-package mmm-auto
:init
(setq mmm-submode-decoration-level 0)
:config
(require 'mmm-auto)
(mmm-add-group 'rust-doc
'((rust-doc-line
:submode markdown-mode
:face mmm-comment-submode-face
:front "///\s+"
:back "\n")
(rust-doc-block
:submode markdown-mode
:face mmm-comment-submode-face
:front "/\\*\\*"
:back "\\*\\*/")))
(mmm-add-mode-ext-class 'ruby-mode nil 'here-doc)
(mmm-add-mode-ext-class 'rust-mode nil 'rust-doc))
(mmm-add-mode-ext-class 'ruby-mode nil 'here-doc))
(use-package python
:init
@ -177,7 +166,6 @@
(use-package rust-mode
:ensure t
:hook ((rust-mode . mmm-mode))
:init
(defvaralias 'rust-indent-offset 'tab-width))