Browse Source

emacs: change mmm-mode config

master
Alison Watson 1 year ago
parent
commit
3e27aca08d
1 changed files with 4 additions and 16 deletions
  1. +4
    -16
      emacs/init.el

+ 4
- 16
emacs/init.el 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))



Loading…
Cancel
Save