-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit-markdown.el
14 lines (12 loc) · 1018 Bytes
/
init-markdown.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(load "~/.emacs.d/lib/markdown-mode.el")
(autoload 'markdown-mode "markdown-mode"
"Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
(add-hook 'markdown-mode-hook (lambda () (local-set-key (kbd "M-p") (lambda () (interactive) (scroll-down 5)))))
(add-hook 'markdown-mode-hook (lambda () (local-set-key (kbd "M-n") (lambda () (interactive) (scroll-up 5)))))
(add-hook 'markdown-mode-hook (lambda () (local-set-key (kbd "C-s-p") (lambda () (interactive) (previous-line 5)))))
(add-hook 'markdown-mode-hook (lambda () (local-set-key (kbd "C-s-n") (lambda () (interactive) (next-line 5)))))
(add-hook 'markdown-mode-hook (lambda () (local-set-key (kbd "M-s-p") (lambda () (interactive) (scroll-previous-line 5)))))
(add-hook 'markdown-mode-hook (lambda () (local-set-key (kbd "M-s-n") (lambda () (interactive) (scroll-next-line 5)))))