diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2025-04-10 23:59:52 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2025-04-10 23:59:52 +0200 |
| commit | 8ba54be9dbafa54fac26f14d1adf5ae8f626e0e6 (patch) | |
| tree | 199803b4ad97b1d2e8eb42434e260d4b8e5b7709 | |
| parent | f04ebc942b4a6c91836801b0415fed86830348e0 (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.
| -rw-r--r-- | config/emacs/flavours/development.el | 2 |
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 |
