From 8ba54be9dbafa54fac26f14d1adf5ae8f626e0e6 Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Thu, 10 Apr 2025 23:59:52 +0200 Subject: 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. --- config/emacs/flavours/development.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3