Add Emacs markdown configuration

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-05-04 21:07:53 +02:00
parent 76d78520c1
commit f471322b6e
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

23
emacs-lisp/markdown.org Normal file
View file

@ -0,0 +1,23 @@
:PROPERTIES:
:header-args:emacs-lisp: :comments link :results none
:ID: 6b918596-a428-4fc9-90c8-ccc456734b10
:END:
#+title: Markdown
#+filetags: emacs-load
#+begin_src emacs-lisp
(use-package markdown
:no-require t
:init
(define-minor-mode visual-fill-column-center-mode
""
:init-value nil
(set-variable 'visual-fill-column-center-text visual-fill-column-center-mode t))
:config
(set-variable 'markdown-fontify-code-blocks-natively t)
:hook
((markdown-mode . visual-fill-column-mode)
(markdown-mode . visual-fill-column-center-mode)
(markdown-mode . visual-line-mode)
(ma)))
#+end_src