mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
I've taken a lot of inspiration from Emacs-Prelude when it came to the structure of this rewritten config. I didn't want to use Prelude as I don't agree with all it's defaults, nor do I want to have to deal with any future changes in Prelude that might break things for me. So instead I went down the fully custom path, but heavily inspired by Prelude, both in terms of file/code structure, and also some of it's features. Compared to my old config setup, it's got most of the same things, but nearly everything is in a module file now, making it easy to fully enable/disable certain features.
33 lines
916 B
EmacsLisp
33 lines
916 B
EmacsLisp
;;
|
|
;; sass
|
|
;;
|
|
|
|
(siren-require-packages '(markdown-mode))
|
|
|
|
(require 'markdown-mode)
|
|
|
|
(setq markdown-command "redcarpet")
|
|
|
|
(setq auto-mode-alist (cons '("\\.md" . markdown-mode) auto-mode-alist))
|
|
(setq auto-mode-alist (cons '("\\.mkd" . markdown-mode) auto-mode-alist))
|
|
(setq auto-mode-alist (cons '("\\.mkdn" . markdown-mode) auto-mode-alist))
|
|
(setq auto-mode-alist (cons '("\\.mdown" . markdown-mode) auto-mode-alist))
|
|
(setq auto-mode-alist (cons '("\\.markdown" . markdown-mode) auto-mode-alist))
|
|
|
|
(defun siren-markdown-mode-defaults ()
|
|
(setq whitespace-action nil)
|
|
(setq fill-column 80)
|
|
(fci-mode)
|
|
(linum-mode t)
|
|
(flyspell-mode)
|
|
(auto-fill-mode)
|
|
(subword-mode)
|
|
(define-key markdown-mode-map (kbd "C-c p") 'markdown-preview))
|
|
|
|
(setq siren-markdown-mode-hook 'siren-markdown-mode-defaults)
|
|
|
|
(add-hook 'markdown-mode-hook (lambda () (run-hooks 'siren-markdown-mode-hook)))
|
|
|
|
|
|
(provide 'siren-markdown)
|