diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-11 22:20:13 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-11 22:20:13 -0700 |
commit | 471f549ed749c2cabb2a65b02f014d6f4549314c (patch) | |
tree | 117880b753abd1eeddece6f2ad684c57ea5eddb4 /archive | |
parent | c674c76012b5e634d6126275075bd8fe47b2448a (diff) | |
download | dotfiles-471f549ed749c2cabb2a65b02f014d6f4549314c.tar.gz |
archive some snippets
Diffstat (limited to 'archive')
-rw-r--r-- | archive/.emacs.d/snippets/org-mode/entry | 4 | ||||
-rw-r--r-- | archive/.emacs.d/snippets/org-mode/kotex | 1 | ||||
-rw-r--r-- | archive/.emacs.d/snippets/org-mode/lisq | 4 | ||||
-rw-r--r-- | archive/.emacs.d/snippets/org-mode/paper | 10 | ||||
-rw-r--r-- | archive/.emacs.d/snippets/org-mode/tblesson | 17 | ||||
-rw-r--r-- | archive/.emacs.d/snippets/org-mode/thumb | 1 | ||||
-rw-r--r-- | archive/.emacs.d/snippets/python-mode/pe_ | 3 | ||||
-rw-r--r-- | archive/.emacs.d/snippets/python-mode/text-mode/posted | 4 |
8 files changed, 44 insertions, 0 deletions
diff --git a/archive/.emacs.d/snippets/org-mode/entry b/archive/.emacs.d/snippets/org-mode/entry new file mode 100644 index 00000000..85451e96 --- /dev/null +++ b/archive/.emacs.d/snippets/org-mode/entry @@ -0,0 +1,4 @@ +#+HTML: ${1:Post title} +#+HTML: #published `(format-time-string "%Y-%m-%d")` ??:??:?? + +$0 diff --git a/archive/.emacs.d/snippets/org-mode/kotex b/archive/.emacs.d/snippets/org-mode/kotex new file mode 100644 index 00000000..6504ca0a --- /dev/null +++ b/archive/.emacs.d/snippets/org-mode/kotex @@ -0,0 +1 @@ +#+LATEX_HEADER: \usepackage[nonfrench,finemath]{kotex} \usehangulfontspec{ut} \SetHangulFonts{utgt}{utgt}{uttz} \usepackage{dhucs-setspace} \usepackage{dhucs-gremph}
\ No newline at end of file diff --git a/archive/.emacs.d/snippets/org-mode/lisq b/archive/.emacs.d/snippets/org-mode/lisq new file mode 100644 index 00000000..a4024d59 --- /dev/null +++ b/archive/.emacs.d/snippets/org-mode/lisq @@ -0,0 +1,4 @@ +*** Pre-listening +- $0 +*** Post-listening +-
\ No newline at end of file diff --git a/archive/.emacs.d/snippets/org-mode/paper b/archive/.emacs.d/snippets/org-mode/paper new file mode 100644 index 00000000..b776a594 --- /dev/null +++ b/archive/.emacs.d/snippets/org-mode/paper @@ -0,0 +1,10 @@ +#+TITLE: ${title} +#+AUTHOR: by Sean Whitton +#+DATE: ${date} +#+SETUPFILE: setupfiles/spwpaper +#+LaTeX_CLASS_OPTIONS: [${footnotes}] + +* +$0 + +\notesandrefs{$HOME/doc/spw.bib} diff --git a/archive/.emacs.d/snippets/org-mode/tblesson b/archive/.emacs.d/snippets/org-mode/tblesson new file mode 100644 index 00000000..05652f58 --- /dev/null +++ b/archive/.emacs.d/snippets/org-mode/tblesson @@ -0,0 +1,17 @@ +#+TITLE: Grade `(f-filename (f-dirname (f-dirname (f-dirname (f-this-file)))))`, Lesson `(f-filename (f-dirname (f-dirname (f-this-file))))`, Period `(f-filename (f-dirname (f-this-file)))`: $1 +#+OPTIONS: num:nil +#+STARTUP: showall +#+ODT_STYLES_FILE: "~/Documents/Templates/twocol.odt" + +* Preparation +** Files +- E-textbook +** Materials +- Ss' textbooks (pp. $2) +** Key expressions +- A :: +* Procedure +| Stage | Time | +|---------+------+ +| | | +** $0 diff --git a/archive/.emacs.d/snippets/org-mode/thumb b/archive/.emacs.d/snippets/org-mode/thumb new file mode 100644 index 00000000..49ac94cc --- /dev/null +++ b/archive/.emacs.d/snippets/org-mode/thumb @@ -0,0 +1 @@ +$0http://spw.sdf.org/blog/${1:filename}.${2:extension}][http://spw.sdf.org/blog/$1thumb.$2]]
\ No newline at end of file diff --git a/archive/.emacs.d/snippets/python-mode/pe_ b/archive/.emacs.d/snippets/python-mode/pe_ new file mode 100644 index 00000000..a37e8bf8 --- /dev/null +++ b/archive/.emacs.d/snippets/python-mode/pe_ @@ -0,0 +1,3 @@ +def project_euler_$1(): + """Print answer to Project Euler problem $1""" + $0 diff --git a/archive/.emacs.d/snippets/python-mode/text-mode/posted b/archive/.emacs.d/snippets/python-mode/text-mode/posted new file mode 100644 index 00000000..ffbce033 --- /dev/null +++ b/archive/.emacs.d/snippets/python-mode/text-mode/posted @@ -0,0 +1,4 @@ +`(let ((raw-git (shell-command-to-string "git diff-index --cached HEAD"))) + (if (string-match "\\([^ ]*\\.\\)org" raw-git) + (concat "/" (match-string 1 raw-git) "html posted") + ""))`
\ No newline at end of file |