mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
All siren modules lazy-load if they can, so there's no need to lazy-require a siren module. Also this avoids the annoyance of the first time you use a feature it triggers a package install from melpa. All such things should happen as part of Emacs startup.
45 lines
973 B
EmacsLisp
45 lines
973 B
EmacsLisp
;;; siren-markdown.el --- jimeh's Emacs Siren: markdown-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for markdown-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-flyspell)
|
|
(require 'siren-smartparens)
|
|
|
|
(use-package markdown-mode
|
|
:mode
|
|
"\\.md"
|
|
"\\.mkd"
|
|
"\\.mkdn"
|
|
"\\.mdown"
|
|
"\\.markdown"
|
|
|
|
:config
|
|
(setq markdown-command "redcarpet")
|
|
|
|
(defun siren-markdown-mode-defaults ()
|
|
(setq whitespace-action nil
|
|
fill-column 80
|
|
markdown-asymmetric-header t)
|
|
|
|
(fci-mode)
|
|
(linum-mode t)
|
|
(flyspell-mode)
|
|
(auto-fill-mode)
|
|
(smartparens-mode +1)
|
|
(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))))
|
|
|
|
(custom-set-faces
|
|
'(markdown-code-face ((t nil))))
|
|
|
|
(provide 'siren-markdown)
|
|
;;; siren-markdown.el ends here
|