about summary refs log tree commit diff
path: root/users/wpcarro/emacs/.emacs.d
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-11-06T00·06-0700
committerclbot <clbot@tvl.fyi>2022-01-08T06·00+0000
commit89a5d93b24750fcf7ac2ac634c1c21428b21fa20 (patch)
tree88483f8c1517f78aa5329129500ed4da7c33f62d /users/wpcarro/emacs/.emacs.d
parent9098920f0afeed956118d46585148bc34ea7f125 (diff)
feat(wpcarro/emacs): Enhance markdown editing experience r/3557
See comments in the code for context.

Change-Id: I0791222881788b89612359c0b3b263dc7dc9bd63
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4803
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/emacs/.emacs.d')
-rw-r--r--users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el b/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el
index 508a5b90c441..58fc6a09c9f0 100644
--- a/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el
+++ b/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el
@@ -104,7 +104,10 @@
   (setq markdown-command "pandoc")
   (setq markdown-split-window-direction 'right)
   ;; (add-hook 'markdown-mode-hook #'markdown-live-preview-mode)
-  )
+  ;; Use mode-specific syntax highlighting for code blocks.
+  (setq markdown-fontify-code-blocks-natively t)
+  ;; Prevent Emacs from adding a space after the leading 3x-backticks.
+  (setq markdown-spaces-after-code-fence 0))
 
 (use-package alert)