Added SRC blocks
This commit is contained in:
		
							parent
							
								
									7ed354203b
								
							
						
					
					
						commit
						c12aa65373
					
				| 
						 | 
					@ -142,6 +142,11 @@
 | 
				
			||||||
                                "#+title: %<%Y-%m-%d>\n#+filetags: %<:%Y:%B::daily>\n\n* Goals\n* Logs"
 | 
					                                "#+title: %<%Y-%m-%d>\n#+filetags: %<:%Y:%B::daily>\n\n* Goals\n* Logs"
 | 
				
			||||||
                                ("Goals")))))
 | 
					                                ("Goals")))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(setq org-src-fontify-natively t
 | 
				
			||||||
 | 
					      org-src-preserve-indentation t
 | 
				
			||||||
 | 
					      org-src-tab-acts-natively t
 | 
				
			||||||
 | 
					      org-src-window-setup 'current-window)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(defun org-babel-execute:diff (body params)
 | 
					(defun org-babel-execute:diff (body params)
 | 
				
			||||||
  "Applies diff patches. Use with care.
 | 
					  "Applies diff patches. Use with care.
 | 
				
			||||||
See https://emacs.stackexchange.com/questions/63517/org-mode-evaluate-diff-code-block"
 | 
					See https://emacs.stackexchange.com/questions/63517/org-mode-evaluate-diff-code-block"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -777,10 +777,18 @@ Add the following the =packages.el=
 | 
				
			||||||
#+begin_src emacs-lisp :tangle "packages.el" :noweb no-export :comments no :results output silent
 | 
					#+begin_src emacs-lisp :tangle "packages.el" :noweb no-export :comments no :results output silent
 | 
				
			||||||
(package! ob-mermaid)
 | 
					(package! ob-mermaid)
 | 
				
			||||||
#+end_src
 | 
					#+end_src
 | 
				
			||||||
 | 
					 | 
				
			||||||
*** Babel stuff
 | 
					*** Babel stuff
 | 
				
			||||||
Babel execute can be tweaked per the syntax see orgmode docs [[https://orgmode.org/manual/Evaluating-Code-Blocks.html][here]].
 | 
					Babel execute can be tweaked per the syntax see orgmode docs [[https://orgmode.org/manual/Evaluating-Code-Blocks.html][here]].
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					**** Src blocks
 | 
				
			||||||
 | 
					These are grabbed from [[https://www.gtrun.org/custom/config][gtrun]]'s configuration.'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#+begin_src emacs-lisp :tangle "+orgmode.el" :noweb no-export :comments no :results output silent
 | 
				
			||||||
 | 
					(setq org-src-fontify-natively t
 | 
				
			||||||
 | 
					      org-src-preserve-indentation t
 | 
				
			||||||
 | 
					      org-src-tab-acts-natively t
 | 
				
			||||||
 | 
					      org-src-window-setup 'current-window)
 | 
				
			||||||
 | 
					#+end_src
 | 
				
			||||||
**** Diff
 | 
					**** Diff
 | 
				
			||||||
The snippet below is largely pulled from John Kitchin [[https://emacs.stackexchange.com/questions/63517/org-mode-evaluate-diff-code-block/63520#63520][Stackexchange Post]].
 | 
					The snippet below is largely pulled from John Kitchin [[https://emacs.stackexchange.com/questions/63517/org-mode-evaluate-diff-code-block/63520#63520][Stackexchange Post]].
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user