For markdown and gfm, +mixed pitch +visual line -autonewline

This commit is contained in:
tecosaur 2020-03-01 21:16:52 +08:00
parent ac80c3162d
commit 4f797b7e8d
1 changed files with 10 additions and 0 deletions

View File

@ -1141,6 +1141,16 @@ and produced by John Wiegley --- author of ~ledger~ and current Emacs maintainer
ledger-report-links-in-register nil
ledger-binary-path "hledger")
#+END_SRC
** Markdown
Let's use mixed pitch, because it's great
#+BEGIN_SRC emacs-lisp
(add-hook! (gfm-mode markdown-mode) #'mixed-pitch-mode)
#+END_SRC
Most of the time when I write markdown, it's going into some app/website which
will do it's own line wrapping, hence we /only/ want to use visual line wrapping. No hard stuff.
#+BEGIN_SRC emacs-lisp
(add-hook! (gfm-mode markdown-mode) #'visual-line-mode #'turn-off-auto-fill)
#+END_SRC
** Beancount
The [[https://bitbucket.org/blais/beancount/src/tip/editors/emacs/beancount.el][beancount package]] online has been put into ~./lisp~, we just need to load and
enable it for ~.beancount~ files.