aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2025-04-10 23:59:52 +0200
committerNicholas Rodrigues Lordello <[email protected]>2025-04-10 23:59:52 +0200
commit8ba54be9dbafa54fac26f14d1adf5ae8f626e0e6 (patch)
tree199803b4ad97b1d2e8eb42434e260d4b8e5b7709 /config
parentf04ebc942b4a6c91836801b0415fed86830348e0 (diff)
Mardown Mode Remap to GFM
I use GitHub flavoured markdown for everything, so I want to setup the major mode remapping accordingly. It turns out this needs to happen in an init and not config, since the remapping needs to be setup **before** the major loads (and not after). This makes it so the first load of a mardown file correctly switches to GFM instead of only working from the second markdown file onwards.
Diffstat (limited to 'config')
-rw-r--r--config/emacs/flavours/development.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/emacs/flavours/development.el b/config/emacs/flavours/development.el
index 14c25b9..a7578a9 100644
--- a/config/emacs/flavours/development.el
+++ b/config/emacs/flavours/development.el
@@ -48,7 +48,7 @@
(use-package markdown-mode
:hook
(gfm-mode . flyspell-mode)
- :config
+ :init
(add-to-list 'major-mode-remap-alist '(markdown-mode . gfm-mode)))
(use-package projectile