diff --git a/elisp/beep.el b/elisp/beep.el index 16fe830..70be30d 100644 --- a/elisp/beep.el +++ b/elisp/beep.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2020 Howard X. Abrams ;; ;; Author: Howard X. Abrams -;; Maintainer: Howard X. Abrams +;; Maintainer: Howard X. Abrams ;; Created: December 23, 2020 ;; ;; This file is not part of GNU Emacs. diff --git a/ha-org-graphviz-example.png b/ha-org-graphviz-example.png index 0cbb3f5..253c5b2 100644 Binary files a/ha-org-graphviz-example.png and b/ha-org-graphviz-example.png differ diff --git a/ha-org-word-processor.org b/ha-org-word-processor.org index 6993fb5..0d6cb52 100644 --- a/ha-org-word-processor.org +++ b/ha-org-word-processor.org @@ -25,9 +25,9 @@ A literate programming file for making Org file more readable. ;;; Code: #+END_SRC * 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 -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 (setq org-pretty-entities t diff --git a/ha-org.org b/ha-org.org index 074aa7d..1bd0848 100644 --- a/ha-org.org +++ b/ha-org.org @@ -301,19 +301,21 @@ The [[https://graphviz.org/][graphviz project]] can be written in org blocks, an #+END_SRC 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 { - main -> parse -> execute; - main -> init; - main -> cleanup; - execute -> make_string; - execute -> printf - init -> make_string; - main -> printf; - execute -> compare; + A -> B -> E; + A -> D; + A -> C; + E -> F; + E -> H + D -> F; + A -> H; + E -> G; } #+END_SRC + #+ATTR_ORG: :width 400px +#+RESULTS: [[file:ha-org-graphviz-example.png]] *** 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: diff --git a/snippets/org-mode/activity-diagram b/snippets/org-mode/activity-diagram index 7db746f..36a4ff6 100644 --- a/snippets/org-mode/activity-diagram +++ b/snippets/org-mode/activity-diagram @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# contributor: Howard Abrams +# contributor: Howard Abrams # name: activity-diagram # key: activity # condition: (ha/org-nested-in-plantuml-block) diff --git a/snippets/org-mode/component-diagram b/snippets/org-mode/component-diagram index 25b0397..67a43d6 100644 --- a/snippets/org-mode/component-diagram +++ b/snippets/org-mode/component-diagram @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# contributor: Howard Abrams +# contributor: Howard Abrams # name: component-diagram # key: component # condition: (ha/org-nested-in-plantuml-block) diff --git a/snippets/org-mode/deployment-diagram b/snippets/org-mode/deployment-diagram index 6350c03..fe65b4f 100644 --- a/snippets/org-mode/deployment-diagram +++ b/snippets/org-mode/deployment-diagram @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# contributor: Howard Abrams +# contributor: Howard Abrams # name: deployment-diagram # key: deployment # condition: (ha/org-nested-in-plantuml-block) diff --git a/snippets/org-mode/dm-screen b/snippets/org-mode/dm-screen index 2181ce0..dbc1cc7 100644 --- a/snippets/org-mode/dm-screen +++ b/snippets/org-mode/dm-screen @@ -8,5 +8,4 @@ (--map (s-capitalize it)) (s-join " "))`} #+AUTHOR: Howard X. Abrams -#+EMAIL: howard.abrams@gmail.com #+FILETAGS: :rpg:5e:dm-screen: diff --git a/snippets/org-mode/graphviz-block b/snippets/org-mode/graphviz-block new file mode 100644 index 0000000..351201b --- /dev/null +++ b/snippets/org-mode/graphviz-block @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: graphviz-block +# key: B}; + } +#+END_SRC + +#+ATTR_ORG: :width 800px \ No newline at end of file diff --git a/snippets/org-mode/object-diagram b/snippets/org-mode/object-diagram index 67e9963..3876004 100644 --- a/snippets/org-mode/object-diagram +++ b/snippets/org-mode/object-diagram @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# contributor: Howard Abrams +# contributor: Howard Abrams # name: object-diagram # key: object # condition: (ha/org-nested-in-plantuml-block) diff --git a/snippets/org-mode/plantuml b/snippets/org-mode/plantuml index d3125fe..48e7a57 100644 --- a/snippets/org-mode/plantuml +++ b/snippets/org-mode/plantuml @@ -1,14 +1,16 @@ # -*- mode: snippet -*- # name: plantuml # key:

+# contributor: Howard Abrams # 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 !include plantuml-dark-theme.puml ' See details at https://plantuml.com/ $0 @enduml #+end_src + +#+ATTR_ORG: :width 800px \ No newline at end of file diff --git a/snippets/org-mode/sequence-diagram b/snippets/org-mode/sequence-diagram index 1384c59..ed2340e 100644 --- a/snippets/org-mode/sequence-diagram +++ b/snippets/org-mode/sequence-diagram @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# contributor: Howard Abrams +# contributor: Howard Abrams # name: sequence-diagram # key: sequence # condition: (ha/org-nested-in-plantuml-block) diff --git a/snippets/org-mode/state-diagram b/snippets/org-mode/state-diagram index 6b9c461..a231392 100644 --- a/snippets/org-mode/state-diagram +++ b/snippets/org-mode/state-diagram @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# contributor: Howard Abrams +# contributor: Howard Abrams # name: state-diagram # key: state # condition: (ha/org-nested-in-plantuml-block) diff --git a/snippets/org-mode/timing-diagram b/snippets/org-mode/timing-diagram index 46865d0..f413a94 100644 --- a/snippets/org-mode/timing-diagram +++ b/snippets/org-mode/timing-diagram @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# contributor: Howard Abrams +# contributor: Howard Abrams # name: timing-diagram # key: timing # condition: (ha/org-nested-in-plantuml-block) diff --git a/snippets/org-mode/use-case-diagram b/snippets/org-mode/use-case-diagram index adec119..888af47 100644 --- a/snippets/org-mode/use-case-diagram +++ b/snippets/org-mode/use-case-diagram @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# contributor: Howard Abrams +# contributor: Howard Abrams # name: use-case-diagram # key: use-case # condition: (ha/org-nested-in-plantuml-block) diff --git a/templates/emacs-lisp-mode.el b/templates/emacs-lisp-mode.el index e7b0e1d..f945f96 100644 --- a/templates/emacs-lisp-mode.el +++ b/templates/emacs-lisp-mode.el @@ -1,9 +1,12 @@ ;;; `(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 -;; Maintainer: Howard X. Abrams +;; Maintainer: Howard X. Abrams ;; Created: `(format-time-string "%e %B %Y")` ;; ;; This file is not part of GNU Emacs. Obviously. But you knew that.