mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- Split large modules into smaller parts (e.g. siren-text-manipulation) - Organize modules into high level groups: - completion - core - editor - languages - linting - misc - navigation - projects - spelling - text-editing - version-control - windows - workspaces
46 lines
880 B
EmacsLisp
46 lines
880 B
EmacsLisp
;;; siren-markdown.el --- jimeh's Emacs Siren: markdown-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for markdown-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-fci)
|
|
(require 'siren-flyspell)
|
|
(require 'siren-linum)
|
|
(require 'siren-smartparens)
|
|
|
|
(use-package markdown-mode
|
|
:mode
|
|
"\\.md"
|
|
"\\.mkd"
|
|
"\\.mkdn"
|
|
"\\.mdown"
|
|
"\\.markdown"
|
|
|
|
:bind (:map markdown-mode-map
|
|
("C-c p" . markdown-preview))
|
|
|
|
:hook
|
|
(markdown-mode . siren-markdown-mode-setup)
|
|
|
|
:init
|
|
(defun siren-markdown-mode-setup ()
|
|
(setq markdown-asymmetric-header t
|
|
whitespace-action nil)
|
|
|
|
(auto-fill-mode)
|
|
(fci-mode)
|
|
(flyspell-mode)
|
|
(linum-mode t)
|
|
(smartparens-mode +1)
|
|
(subword-mode))
|
|
|
|
:config
|
|
(setq markdown-command "redcarpet")
|
|
(custom-set-faces '(markdown-code-face ((t nil)))))
|
|
|
|
(provide 'siren-markdown)
|
|
;;; siren-markdown.el ends here
|