summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configs/rcs/emacs.d/init.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/rcs/emacs.d/init.el b/configs/rcs/emacs.d/init.el
index 45cfd2c..fb30546 100644
--- a/configs/rcs/emacs.d/init.el
+++ b/configs/rcs/emacs.d/init.el
@@ -229,7 +229,11 @@
 ;;; text formats
 
 (use-package markdown-mode
-  :after (flyspell))
+  :after (flyspell)
+  :commands (markdown-mode gfm-mode)
+  :mode (("README\\.md\\'" . gfm-mode)
+         ("\\.md\\'" . markdown-mode)
+         ("\\.markdown\\'" . markdown-mode)))
 
 ;;; source control