about summary refs log tree commit diff stats
path: root/snippets
diff options
context:
space:
mode:
authorCase Duckworth2022-03-12 11:26:25 -0600
committerCase Duckworth2022-03-12 11:26:25 -0600
commit31f595fafac75c0c72f0fd2530f9595a263cd58d (patch)
tree73aa017db544202c101d554ae323895e12dd8b14 /snippets
parentPurge org-contacts (diff)
parentUh (diff)
downloademacs-31f595fafac75c0c72f0fd2530f9595a263cd58d.tar.gz
emacs-31f595fafac75c0c72f0fd2530f9595a263cd58d.zip
Merge branch 'main' of https://tildegit.org/acdw/emacs
Diffstat (limited to 'snippets')
-rw-r--r--snippets/org-mode/sc4
-rw-r--r--snippets/sh-mode/getopts10
2 files changed, 14 insertions, 0 deletions
diff --git a/snippets/org-mode/sc b/snippets/org-mode/sc new file mode 100644 index 0000000..977fe22 --- /dev/null +++ b/snippets/org-mode/sc
@@ -0,0 +1,4 @@
1# key: sc
2# name: sc
3# --
4[sc="${1: $(yas-choose-value '("total-recovery" "br-location-page" "_locationnameslisted" "organizations-helped" "other-results" "truck-accident-results" "car-wreck-results" "personal-injury-results" "number-locations" "experience" "employees" "mon-number" "mon-address" "lc-number" "lc-address" "ham-number" "ham-address" "zac-number" "zac-address" "liv-number" "liv-address" "asc-number" "asc-address" "shrev-number" "shrev-address" "alx-address" "alx-number" "laf-number" "laf-address" "toll-free" "br-number" "br-address" "gmia"))}"][/sc] $0 \ No newline at end of file
diff --git a/snippets/sh-mode/getopts b/snippets/sh-mode/getopts new file mode 100644 index 0000000..8f6fc39 --- /dev/null +++ b/snippets/sh-mode/getopts
@@ -0,0 +1,10 @@
1# -*- mode: snippet -*-
2# name: getopts
3# key: getopts
4# --
5while getopts ${1:h} opt; do
6 case "$opt" in
7 $0
8 esac
9done
10shift $(( OPTIND -1 )) \ No newline at end of file