notes.md created

This commit is contained in:
Meik Hellmund 2020-11-11 15:02:09 +01:00
parent 4979e66f27
commit 04d0fb089e
2 changed files with 40 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# Compiled # Compiled
*.elc *.elc
*~
# Packaging # Packaging
.cask .cask

39
notes.md Normal file
View File

@ -0,0 +1,39 @@
* aus .emacs:
``` elisp
(autoload 'markdown-mode "markdown-mode.el"
"Major mode for editing Markdown files" t)
(setq auto-mode-alist
(cons '("\\.text" . markdown-mode) auto-mode-alist))
(setq markdown-enable-math t)
;;(setq markdown-split-window-direction 'right)
(setq browse-url-browser-function #'browse-url-chromium)
(setq markdown-command
(concat
"/usr/bin/pandoc --to=html"
" --from markdown+tex_math_dollars+yaml_metadata_block+autolink_bare_uris"
" --mathjax --highlight-style=pygments"))
;; " --standalone --toc"
;;M-x package-refresh-contents
;;M-x package-install Ret web-server
;;(require 'markdown-preview-mode)
```
* dann
``` elisp
M-x package-install markdown-preview-mode
```
* dann `preview.html` in `.emacs.d/elpa/m-p-m` ersetzen,
* dann in einem md-buffer: `M-x markdown-preview-mode`
(Zum unterschied: `M-x markdown-preview` macht auch ein chrome-buffer
auf, aber ohne live-update)