Commit f6e92925d93f

Vincent Demeester <vincent@sbr.pm>
2020-04-08 16:50:22
writing.el: re-enable markdown-mode
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent caf7748
Changed files (2)
tools/emacs/config/config-files.el
@@ -20,27 +20,6 @@
   :disabled
   :init (auto-image-file-mode))
 
-(use-package markdown-mode
-  :disabled
-  :mode ("\\.md\\'" . markdown-mode)
-  :config
-  (setq markdown-fontify-code-blocks-natively t)
-
-  ;; Don't change font in code blocks
-  (set-face-attribute 'markdown-code-face nil
-                      :inherit nil)
-
-  ;; Process Markdown with Pandoc, using a custom stylesheet for nice output
-  (let ((stylesheet (expand-file-name
-                     (locate-user-emacs-file "etc/pandoc.css"))))
-    (setq markdown-command
-          (mapconcat #'shell-quote-argument
-                     `("pandoc" "--toc" "--section-divs"
-                       "--css" ,(concat "file://" stylesheet)
-                       "--standalone" "-f" "markdown" "-t" "html5")
-                     " ")))
-  (add-hook 'markdown-mode-hook #'auto-fill-mode))
-
 (use-package highlight-indentation
   :disabled
   :config
tools/emacs/config/writing.el
@@ -0,0 +1,19 @@
+(use-package markdown-mode
+  :mode ("\\.md\\'" . markdown-mode)
+  :config
+  (setq markdown-fontify-code-blocks-natively t)
+
+  ;; Don't change font in code blocks
+  (set-face-attribute 'markdown-code-face nil
+                      :inherit nil)
+
+  ;; Process Markdown with Pandoc, using a custom stylesheet for nice output
+  (let ((stylesheet (expand-file-name
+                     (locate-user-emacs-file "etc/pandoc.css"))))
+    (setq markdown-command
+          (mapconcat #'shell-quote-argument
+                     `("pandoc" "--toc" "--section-divs"
+                       "--css" ,(concat "file://" stylesheet)
+                       "--standalone" "-f" "markdown" "-t" "html5")
+                     " ")))
+  (add-hook 'markdown-mode-hook #'auto-fill-mode))