Minor copyright touchups on my snippets.

This commit is contained in:
Howard Abrams 2022-03-09 17:14:21 -08:00
parent b5a82133ca
commit 0dd7ba0355
16 changed files with 43 additions and 25 deletions

View file

@ -3,7 +3,7 @@
;; Copyright (C) 2020 Howard X. Abrams
;;
;; Author: Howard X. Abrams <http://gitlab.com/howardabrams>
;; Maintainer: Howard X. Abrams <howard.abrams@gmail.com>
;; Maintainer: Howard X. Abrams
;; Created: December 23, 2020
;;
;; This file is not part of GNU Emacs.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View file

@ -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

View file

@ -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:

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# contributor: Howard Abrams <howard.abrams@gmail.com>
# contributor: Howard Abrams
# name: activity-diagram
# key: activity
# condition: (ha/org-nested-in-plantuml-block)

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# contributor: Howard Abrams <howard.abrams@gmail.com>
# contributor: Howard Abrams
# name: component-diagram
# key: component
# condition: (ha/org-nested-in-plantuml-block)

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# contributor: Howard Abrams <howard.abrams@gmail.com>
# contributor: Howard Abrams
# name: deployment-diagram
# key: deployment
# condition: (ha/org-nested-in-plantuml-block)

View file

@ -8,5 +8,4 @@
(--map (s-capitalize it))
(s-join " "))`}
#+AUTHOR: Howard X. Abrams
#+EMAIL: howard.abrams@gmail.com
#+FILETAGS: :rpg:5e:dm-screen:

View 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

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# contributor: Howard Abrams <howard.abrams@gmail.com>
# contributor: Howard Abrams
# name: object-diagram
# key: object
# condition: (ha/org-nested-in-plantuml-block)

View file

@ -1,14 +1,16 @@
# -*- mode: snippet -*-
# name: plantuml
# key: <p
# contributor: Howard Abrams <howard.abrams@gmail.com>
# 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

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# contributor: Howard Abrams <howard.abrams@gmail.com>
# contributor: Howard Abrams
# name: sequence-diagram
# key: sequence
# condition: (ha/org-nested-in-plantuml-block)

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# contributor: Howard Abrams <howard.abrams@gmail.com>
# contributor: Howard Abrams
# name: state-diagram
# key: state
# condition: (ha/org-nested-in-plantuml-block)

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# contributor: Howard Abrams <howard.abrams@gmail.com>
# contributor: Howard Abrams
# name: timing-diagram
# key: timing
# condition: (ha/org-nested-in-plantuml-block)

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# contributor: Howard Abrams <howard.abrams@gmail.com>
# contributor: Howard Abrams
# name: use-case-diagram
# key: use-case
# condition: (ha/org-nested-in-plantuml-block)

View file

@ -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 <http://gitlab.com/howardabrams>
;; Maintainer: Howard X. Abrams <howard.abrams@gmail.com>
;; Maintainer: Howard X. Abrams
;; Created: `(format-time-string "%e %B %Y")`
;;
;; This file is not part of GNU Emacs. Obviously. But you knew that.