File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ and the [Scribble Emacs mode](https://github.com/emacs-pe/scribble-mode).
12
12
13
13
Download ` pollen-mode ` to your emacs lisp directory.
14
14
15
+ ``` bash
15
16
git clone https://github.com/basus/pollen-mode.git ~ /.emacs.d/lisp/pollen-mode
17
+ ```
16
18
17
19
Then add the following to ` ~/.emacs.d/init.el ` :
18
20
21
+ ``` bash
19
22
(add-to-list ' load-path (expand-file-name "lisp/pollen-mode" user-emacs-directory))
20
23
(autoload ' pollen-mode " pollen" " A major mode for the pollen preprocessor." t)
21
- (add-to-list 'auto-mode-alist '("\\.pp\\'" . pollen-mode))
22
- (add-to-list 'auto-mode-alist '("\\.pmd\\'" . pollen-mode))
23
- (add-to-list 'auto-mode-alist '("\\.pm\\'" . pollen-mode))
24
- (add-to-list 'auto-mode-alist '("\\.ptree\\'" . pollen-mode))
24
+ ```
25
25
26
26
Restart emacs. ` pollen-mode ` should activate when you open a file with
27
27
a ` .pp ` extension.
Original file line number Diff line number Diff line change @@ -60,7 +60,10 @@ For other licenses and consulting, please contact the author.")
60
60
(mapc (lambda (pair )
61
61
(or (assoc (car pair) auto-mode-alist)
62
62
(push pair auto-mode-alist)))
63
- '((" \\ .pm$\\ '" . pollen-mode)))
64
-
63
+ '((" \\ .p$'" . pollen-mode)
64
+ (" \\ .pp$'" . pollen-mode)
65
+ (" \\ .pm$" . pollen-mode)
66
+ (" \\ .pmd$" . pollen-mode)
67
+ (" \\ .ptree$" . pollen-mode)))
65
68
66
69
(provide 'pollen )
You can’t perform that action at this time.
0 commit comments