notes.md created
This commit is contained in:
		
							parent
							
								
									4979e66f27
								
							
						
					
					
						commit
						04d0fb089e
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -1,5 +1,6 @@
 | 
			
		||||
# Compiled
 | 
			
		||||
*.elc
 | 
			
		||||
*~
 | 
			
		||||
 | 
			
		||||
# Packaging
 | 
			
		||||
.cask
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										39
									
								
								notes.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								notes.md
									
									
									
									
									
										Normal 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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user