Minor copyright touchups on my snippets.
This commit is contained in:
		
							parent
							
								
									b5a82133ca
								
							
						
					
					
						commit
						0dd7ba0355
					
				
					 16 changed files with 43 additions and 25 deletions
				
			
		| 
						 | 
					@ -3,7 +3,7 @@
 | 
				
			||||||
;; Copyright (C) 2020 Howard X. Abrams
 | 
					;; Copyright (C) 2020 Howard X. Abrams
 | 
				
			||||||
;;
 | 
					;;
 | 
				
			||||||
;; Author: Howard X. Abrams <http://gitlab.com/howardabrams>
 | 
					;; Author: Howard X. Abrams <http://gitlab.com/howardabrams>
 | 
				
			||||||
;; Maintainer: Howard X. Abrams <howard.abrams@gmail.com>
 | 
					;; Maintainer: Howard X. Abrams
 | 
				
			||||||
;; Created: December 23, 2020
 | 
					;; Created: December 23, 2020
 | 
				
			||||||
;;
 | 
					;;
 | 
				
			||||||
;; This file is not part of GNU Emacs.
 | 
					;; This file is not part of GNU Emacs.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 23 KiB  | 
| 
						 | 
					@ -25,9 +25,9 @@ A literate programming file for making Org file more readable.
 | 
				
			||||||
  ;;; Code:
 | 
					  ;;; Code:
 | 
				
			||||||
#+END_SRC
 | 
					#+END_SRC
 | 
				
			||||||
* Introduction
 | 
					* Introduction
 | 
				
			||||||
I like having org-mode files look more like editing in a word processor than having it look like programming code. But that is just me.
 | 
					I like having org-mode files look more like a word processor than having it look like programming code. But that is just me.
 | 
				
			||||||
* General Org Settings
 | 
					* General Org Settings
 | 
				
			||||||
Since I use ellipsis in my writing... I like to /change/ how org renders a collapsed heading.
 | 
					Since I use ellipsis in my writing… to /change/ how org renders a collapsed heading.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#+BEGIN_SRC emacs-lisp
 | 
					#+BEGIN_SRC emacs-lisp
 | 
				
			||||||
  (setq org-pretty-entities t
 | 
					  (setq org-pretty-entities t
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										20
									
								
								ha-org.org
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								ha-org.org
									
									
									
									
									
								
							| 
						 | 
					@ -301,19 +301,21 @@ The [[https://graphviz.org/][graphviz project]] can be written in org blocks, an
 | 
				
			||||||
#+END_SRC
 | 
					#+END_SRC
 | 
				
			||||||
 | 
					
 | 
				
			||||||
For example:
 | 
					For example:
 | 
				
			||||||
#+BEGIN_SRC dot :file ha-org-graphviz-example.png
 | 
					#+BEGIN_SRC dot :file ha-org-graphviz-example.png :exports file :results replace file
 | 
				
			||||||
  digraph G {
 | 
					  digraph G {
 | 
				
			||||||
    main -> parse -> execute;
 | 
					    A -> B -> E;
 | 
				
			||||||
    main -> init;
 | 
					    A -> D;
 | 
				
			||||||
    main -> cleanup;
 | 
					    A -> C;
 | 
				
			||||||
    execute -> make_string;
 | 
					    E -> F;
 | 
				
			||||||
    execute -> printf
 | 
					    E -> H
 | 
				
			||||||
    init -> make_string;
 | 
					    D -> F;
 | 
				
			||||||
    main -> printf;
 | 
					    A -> H;
 | 
				
			||||||
    execute -> compare;
 | 
					    E -> G;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
#+END_SRC
 | 
					#+END_SRC
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#+ATTR_ORG: :width 400px
 | 
					#+ATTR_ORG: :width 400px
 | 
				
			||||||
 | 
					#+RESULTS:
 | 
				
			||||||
[[file:ha-org-graphviz-example.png]]
 | 
					[[file:ha-org-graphviz-example.png]]
 | 
				
			||||||
*** Next Image
 | 
					*** Next Image
 | 
				
			||||||
When I create images or other artifacts that I consider /part/ of the org document, I want to have them based on the org file, but with a prepended number. Keeping track of what numbers are now free is difficult, so for a /default/ let's figure it out:
 | 
					When I create images or other artifacts that I consider /part/ of the org document, I want to have them based on the org file, but with a prepended number. Keeping track of what numbers are now free is difficult, so for a /default/ let's figure it out:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
# -*- mode: snippet -*-
 | 
					# -*- mode: snippet -*-
 | 
				
			||||||
# contributor: Howard Abrams <howard.abrams@gmail.com>
 | 
					# contributor: Howard Abrams
 | 
				
			||||||
# name: activity-diagram
 | 
					# name: activity-diagram
 | 
				
			||||||
# key: activity
 | 
					# key: activity
 | 
				
			||||||
# condition: (ha/org-nested-in-plantuml-block)
 | 
					# condition: (ha/org-nested-in-plantuml-block)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
# -*- mode: snippet -*-
 | 
					# -*- mode: snippet -*-
 | 
				
			||||||
# contributor: Howard Abrams <howard.abrams@gmail.com>
 | 
					# contributor: Howard Abrams
 | 
				
			||||||
# name: component-diagram
 | 
					# name: component-diagram
 | 
				
			||||||
# key: component
 | 
					# key: component
 | 
				
			||||||
# condition: (ha/org-nested-in-plantuml-block)
 | 
					# condition: (ha/org-nested-in-plantuml-block)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
# -*- mode: snippet -*-
 | 
					# -*- mode: snippet -*-
 | 
				
			||||||
# contributor: Howard Abrams <howard.abrams@gmail.com>
 | 
					# contributor: Howard Abrams
 | 
				
			||||||
# name: deployment-diagram
 | 
					# name: deployment-diagram
 | 
				
			||||||
# key: deployment
 | 
					# key: deployment
 | 
				
			||||||
# condition: (ha/org-nested-in-plantuml-block)
 | 
					# condition: (ha/org-nested-in-plantuml-block)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,5 +8,4 @@
 | 
				
			||||||
                    (--map (s-capitalize it))
 | 
					                    (--map (s-capitalize it))
 | 
				
			||||||
                    (s-join " "))`}
 | 
					                    (s-join " "))`}
 | 
				
			||||||
#+AUTHOR: Howard X. Abrams
 | 
					#+AUTHOR: Howard X. Abrams
 | 
				
			||||||
#+EMAIL:  howard.abrams@gmail.com
 | 
					 | 
				
			||||||
#+FILETAGS: :rpg:5e:dm-screen:
 | 
					#+FILETAGS: :rpg:5e:dm-screen:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										12
									
								
								snippets/org-mode/graphviz-block
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								snippets/org-mode/graphviz-block
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,12 @@
 | 
				
			||||||
 | 
					# -*- mode: snippet -*-
 | 
				
			||||||
 | 
					# name: graphviz-block
 | 
				
			||||||
 | 
					# key: <g
 | 
				
			||||||
 | 
					# --
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#+BEGIN_SRC dot :file ${1:`(file-name-base (buffer-file-name)))`-`(ha-org-next-image-number)`}.${2:png} :exports file :results file
 | 
				
			||||||
 | 
					  digraph G {
 | 
				
			||||||
 | 
					    ${0:A -> B};
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					#+END_SRC
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#+ATTR_ORG: :width 800px
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
# -*- mode: snippet -*-
 | 
					# -*- mode: snippet -*-
 | 
				
			||||||
# contributor: Howard Abrams <howard.abrams@gmail.com>
 | 
					# contributor: Howard Abrams
 | 
				
			||||||
# name: object-diagram
 | 
					# name: object-diagram
 | 
				
			||||||
# key: object
 | 
					# key: object
 | 
				
			||||||
# condition: (ha/org-nested-in-plantuml-block)
 | 
					# condition: (ha/org-nested-in-plantuml-block)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,14 +1,16 @@
 | 
				
			||||||
# -*- mode: snippet -*-
 | 
					# -*- mode: snippet -*-
 | 
				
			||||||
# name: plantuml
 | 
					# name: plantuml
 | 
				
			||||||
# key: <p
 | 
					# key: <p
 | 
				
			||||||
# contributor: Howard Abrams <howard.abrams@gmail.com>
 | 
					# contributor: Howard Abrams
 | 
				
			||||||
# group: plantuml
 | 
					# group: plantuml
 | 
				
			||||||
# --
 | 
					# --
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#+begin_src plantuml :file ${1:`(ha/org-next-image-number)`}.${2:png} :exports file :results file
 | 
					#+begin_src plantuml :file ${1:`(file-name-base (buffer-file-name)))`-`(ha-org-next-image-number)`}.${2:png} :exports file :results file
 | 
				
			||||||
@startuml
 | 
					@startuml
 | 
				
			||||||
!include plantuml-dark-theme.puml
 | 
					!include plantuml-dark-theme.puml
 | 
				
			||||||
' See details at https://plantuml.com/
 | 
					' See details at https://plantuml.com/
 | 
				
			||||||
$0
 | 
					$0
 | 
				
			||||||
@enduml
 | 
					@enduml
 | 
				
			||||||
#+end_src
 | 
					#+end_src
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#+ATTR_ORG: :width 800px
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
# -*- mode: snippet -*-
 | 
					# -*- mode: snippet -*-
 | 
				
			||||||
# contributor: Howard Abrams <howard.abrams@gmail.com>
 | 
					# contributor: Howard Abrams
 | 
				
			||||||
# name: sequence-diagram
 | 
					# name: sequence-diagram
 | 
				
			||||||
# key: sequence
 | 
					# key: sequence
 | 
				
			||||||
# condition: (ha/org-nested-in-plantuml-block)
 | 
					# condition: (ha/org-nested-in-plantuml-block)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
# -*- mode: snippet -*-
 | 
					# -*- mode: snippet -*-
 | 
				
			||||||
# contributor: Howard Abrams <howard.abrams@gmail.com>
 | 
					# contributor: Howard Abrams
 | 
				
			||||||
# name: state-diagram
 | 
					# name: state-diagram
 | 
				
			||||||
# key: state
 | 
					# key: state
 | 
				
			||||||
# condition: (ha/org-nested-in-plantuml-block)
 | 
					# condition: (ha/org-nested-in-plantuml-block)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
# -*- mode: snippet -*-
 | 
					# -*- mode: snippet -*-
 | 
				
			||||||
# contributor: Howard Abrams <howard.abrams@gmail.com>
 | 
					# contributor: Howard Abrams
 | 
				
			||||||
# name: timing-diagram
 | 
					# name: timing-diagram
 | 
				
			||||||
# key: timing
 | 
					# key: timing
 | 
				
			||||||
# condition: (ha/org-nested-in-plantuml-block)
 | 
					# condition: (ha/org-nested-in-plantuml-block)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
# -*- mode: snippet -*-
 | 
					# -*- mode: snippet -*-
 | 
				
			||||||
# contributor: Howard Abrams <howard.abrams@gmail.com>
 | 
					# contributor: Howard Abrams
 | 
				
			||||||
# name: use-case-diagram
 | 
					# name: use-case-diagram
 | 
				
			||||||
# key: use-case
 | 
					# key: use-case
 | 
				
			||||||
# condition: (ha/org-nested-in-plantuml-block)
 | 
					# condition: (ha/org-nested-in-plantuml-block)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,12 @@
 | 
				
			||||||
;;; `(file-name-nondirectory (buffer-file-name))` --- $1  -*- lexical-binding: t; -*-
 | 
					;;; `(file-name-nondirectory (buffer-file-name))` --- $1  -*- lexical-binding: t; -*-
 | 
				
			||||||
;;
 | 
					;;
 | 
				
			||||||
;; Copyright (C) `(format-time-string "%Y")`  Howard X. Abrams
 | 
					;; © `(format-time-string "%Y")` Howard X. Abrams
 | 
				
			||||||
 | 
					;;   This work is licensed under a Creative Commons Attribution 4.0 International License.
 | 
				
			||||||
 | 
					;;   See http://creativecommons.org/licenses/by/4.0/
 | 
				
			||||||
 | 
					;;
 | 
				
			||||||
;;
 | 
					;;
 | 
				
			||||||
;; Author: Howard X. Abrams <http://gitlab.com/howardabrams>
 | 
					;; Author: Howard X. Abrams <http://gitlab.com/howardabrams>
 | 
				
			||||||
;; Maintainer: Howard X. Abrams <howard.abrams@gmail.com>
 | 
					;; Maintainer: Howard X. Abrams
 | 
				
			||||||
;; Created: `(format-time-string "%e %B %Y")`
 | 
					;; Created: `(format-time-string "%e %B %Y")`
 | 
				
			||||||
;;
 | 
					;;
 | 
				
			||||||
;; This file is not part of GNU Emacs. Obviously. But you knew that.
 | 
					;; This file is not part of GNU Emacs. Obviously. But you knew that.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue