-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbistro-mode.el
48 lines (45 loc) · 1.48 KB
/
bistro-mode.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(require 'mmm-auto)
(setq mmm-global-mode 'maybe)
(mmm-add-classes
'((bistro-sh
:submode sh-mode
:face mmm-declaration-submode-face
:front "[%sh[ \t\n]*{|"
:back "|}")
(bistro-bash
:submode sh-mode
:face mmm-declaration-submode-face
:front "[%bash[ \t\n]*{|"
:back "|}")
(bistro-R
:submode ess-mode
:face mmm-declaration-submode-face
:front "[%R[ \t\n]*{|"
:back "|}")
(bistro-perl
:submode perl-mode
:face mmm-declaration-submode-face
:front "[%perl[ \t\n]*{|"
:back "|}")
(bistro-ocaml
:submode tuareg-mode
:face mmm-declaration-submode-face
:front "[%ocaml[ \t\n]*{|"
:back "|}")
(bistro-ocamlscript
:submode tuareg-mode
:face mmm-declaration-submode-face
:front "[%ocamlscript[ \t\n]*{|"
:back "|}")
(bistro-python
:submode python-mode
:face mmm-declaration-submode-face
:front "[%python[ \t\n]*{|"
:back "|}")))
(mmm-add-mode-ext-class 'tuareg-mode nil 'bistro-sh)
(mmm-add-mode-ext-class 'tuareg-mode nil 'bistro-bash)
(mmm-add-mode-ext-class 'tuareg-mode nil 'bistro-ocaml)
(mmm-add-mode-ext-class 'tuareg-mode nil 'bistro-ocamlscript)
(mmm-add-mode-ext-class 'tuareg-mode nil 'bistro-python)
(mmm-add-mode-ext-class 'tuareg-mode nil 'bistro-R)
(mmm-add-mode-ext-class 'tuareg-mode nil 'bistro-perl)