forked from polymode/polymode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoly-base.el
95 lines (79 loc) · 2.22 KB
/
poly-base.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
;;; CORE POLYMODE AND HOST OBJECTS
;;; POLYMODE objects
;; These are simple generic configuration objects. More specialized
;; configuration objects are defined in language-specific files (e.g. poly-R.el,
;; poly-markdown.el etc).
(defcustom pm-poly/brew
(pm-polymode-one "brew"
:hostmode 'pm-host/text
:innermode 'pm-inner/fundamental)
"Typical Brew configuration"
:group 'polymodes
:type 'object)
(defcustom pm-poly/html
;; fixme: should probably be pm-polymode-multi
(pm-polymode-one "html"
:hostmode 'pm-host/html
:innermode 'pm-inner/fundamental)
"HTML typical configuration"
:group 'polymodes
:type 'object)
(defcustom pm-poly/C++
(pm-polymode-one "C++"
:hostmode 'pm-host/C++
:innermode 'pm-inner/fundamental)
"C++ typical configuration"
:group 'polymodes
:type 'object)
;; HOST MODES
(defcustom pm-host/blank
(pm-bchunkmode "blank")
"Blank chunkmode. This is the default :hostmode for all pm-polymode objects.
On initalisation this chunkmode sets :mode to whatever major-mode
is in place at that time."
:group 'hostmodes
:type 'object)
(defcustom pm-host/fundamental
(pm-bchunkmode "fundamental"
:mode 'fundamental-mode)
"Fundamental host mode"
:group 'hostmodes
:type 'object)
(defcustom pm-host/latex
(pm-bchunkmode "latex"
:mode 'latex-mode)
"Latex host chunkmode"
:group 'hostmodes
:type 'object)
(defcustom pm-host/html
(pm-bchunkmode "html"
:mode 'html-mode)
"HTML host chunkmode"
:group 'hostmodes
:type 'object)
(defcustom pm-host/R
(pm-bchunkmode "R"
:mode 'R-mode)
"R host chunkmode"
:group 'hostmodes
:type 'object)
(defcustom pm-host/C++
(pm-bchunkmode "C++"
:mode 'c++-mode
:font-lock-narrow nil)
"C++ host chunkmode"
:group 'hostmodes
:type 'object)
(defcustom pm-host/text
(pm-bchunkmode "text"
:mode 'text-mode)
"Text host chunkmode"
:group 'hostmodes
:type 'object)
(defcustom pm-host/yaml
(pm-bchunkmode "YAML"
:mode 'yaml-mode)
"YAML chunkmode"
:group 'hostmodes
:type 'object)
(provide 'poly-base)