Files
.emacs.d/modules/siren-markdown.el
Jim Myhrberg 43b092a8b0 Don't lazy-require siren module dependencies
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.
2018-01-10 14:42:07 +00:00

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