summary refs log tree commit diff
path: root/emacs.d/modules/module-markdown.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/modules/module-markdown.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/emacs.d/modules/module-markdown.el b/emacs.d/modules/module-markdown.el
new file mode 100644
index 0000000..7d993b4
--- /dev/null
+++ b/emacs.d/modules/module-markdown.el
@@ -0,0 +1,17 @@
+(require 'config-package)
+
+(use-package markdown-mode
+  ;; mode to support files in the Markdown format
+  :ensure t
+
+  :commands (markdown-mode gfm-mode)
+
+  :mode (("\\.md\\'"       . gfm-mode)
+         ("\\.markdown\\'" . gfm-mode))
+
+  :init (setq markdown-command "pandoc -f markdown_github -c https://goo.gl/OVmlwT --self-contained")
+
+  :config
+  (add-hook 'gfm-mode-hook 'visual-line-mode))
+
+(provide 'module-markdown)