refactor(org): org-src-lang-modes: move md alias
This is a general convenience for org users, not specifically for users of the markdown module, so it belongs in :lang org.
This commit is contained in:
parent
8bd6b8ab68
commit
a4869f32e7
2 changed files with 3 additions and 4 deletions
|
@ -46,10 +46,6 @@ capture, the end position, and the output buffer.")
|
||||||
"<script src='https://cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js'></script>"
|
"<script src='https://cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js'></script>"
|
||||||
"<script>document.addEventListener('DOMContentLoaded', () => { document.body.classList.add('markdown-body'); document.querySelectorAll('pre[lang] > code').forEach((code) => { code.classList.add(code.parentElement.lang); }); document.querySelectorAll('pre > code').forEach((code) => { hljs.highlightBlock(code); }); });</script>"))
|
"<script>document.addEventListener('DOMContentLoaded', () => { document.body.classList.add('markdown-body'); document.querySelectorAll('pre[lang] > code').forEach((code) => { code.classList.add(code.parentElement.lang); }); document.querySelectorAll('pre > code').forEach((code) => { hljs.highlightBlock(code); }); });</script>"))
|
||||||
|
|
||||||
;; A shorter alias for org src blocks than "markdown"
|
|
||||||
(after! org-src
|
|
||||||
(add-to-list 'org-src-lang-modes '("md" . markdown)))
|
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(set-flyspell-predicate! '(markdown-mode gfm-mode)
|
(set-flyspell-predicate! '(markdown-mode gfm-mode)
|
||||||
#'+markdown-flyspell-word-p)
|
#'+markdown-flyspell-word-p)
|
||||||
|
|
|
@ -205,6 +205,9 @@ Is relative to `org-directory', unless it is absolute. Is used in Doom's default
|
||||||
;; Our :lang common-lisp module uses sly, so...
|
;; Our :lang common-lisp module uses sly, so...
|
||||||
org-babel-lisp-eval-fn #'sly-eval)
|
org-babel-lisp-eval-fn #'sly-eval)
|
||||||
|
|
||||||
|
;; A shorter alias for markdown code blocks.
|
||||||
|
(add-to-list 'org-src-lang-modes '("md" . markdown))
|
||||||
|
|
||||||
;; I prefer C-c C-c over C-c ' (more consistent)
|
;; I prefer C-c C-c over C-c ' (more consistent)
|
||||||
(define-key org-src-mode-map (kbd "C-c C-c") #'org-edit-src-exit)
|
(define-key org-src-mode-map (kbd "C-c C-c") #'org-edit-src-exit)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue