summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-07-27 20:41:12 -0400
committerKyle Meyer <kyle@kyleam.com>2017-07-27 20:41:12 -0400
commit782ffa72bf459c10c2a74004263a4d2b49b7905f (patch)
treea1686c457f0b65cd3aa282182aa91134a44e56e0
parent91ea3394df49fbde61db951b525de2fc10ef583d (diff)
downloademacs.d-782ffa72bf459c10c2a74004263a4d2b49b7905f.tar.gz
snippets: Remove redundant (or nearly redundant) names
The name field defaults to the file name, so don't bother explicitly specifying a name field that matches or nearly matches the file name.
-rw-r--r--snippets/ess-mode/command-args1
-rw-r--r--snippets/ess-mode/datatable1
-rw-r--r--snippets/ess-mode/dplyr1
-rw-r--r--snippets/ess-mode/ggplot21
-rw-r--r--snippets/ess-mode/lme41
-rw-r--r--snippets/ess-mode/par1
-rw-r--r--snippets/ess-mode/rscript-shebang1
-rw-r--r--snippets/latex-mode/equation1
-rw-r--r--snippets/latex-mode/figure1
-rw-r--r--snippets/latex-mode/si1
-rw-r--r--snippets/python-mode/defaultdict1
-rw-r--r--snippets/python-mode/docopt-args1
-rw-r--r--snippets/python-mode/examples-header1
-rw-r--r--snippets/python-mode/figax1
-rw-r--r--snippets/python-mode/figaxs1
-rw-r--r--snippets/python-mode/h5py1
-rw-r--r--snippets/python-mode/mpi4py1
-rw-r--r--snippets/python-mode/numpy-random-seed1
-rw-r--r--snippets/python-mode/numpy-testing1
-rw-r--r--snippets/python-mode/ordereddict1
-rw-r--r--snippets/python-mode/pandas1
-rw-r--r--snippets/python-mode/pandas-hdf-store1
-rw-r--r--snippets/python-mode/parameter-item1
-rw-r--r--snippets/python-mode/parameters-header1
-rw-r--r--snippets/python-mode/plotting-imports1
-rw-r--r--snippets/python-mode/pprint1
-rw-r--r--snippets/python-mode/pseaborn1
-rw-r--r--snippets/python-mode/pytest1
-rw-r--r--snippets/python-mode/pytest-def1
-rw-r--r--snippets/python-mode/python-shebang1
-rw-r--r--snippets/python-mode/returns-header1
-rw-r--r--snippets/python-mode/subplots-adjust1
-rw-r--r--snippets/python-mode/test-method1
-rw-r--r--snippets/python-mode/theano1
-rw-r--r--snippets/python-mode/tight-layout1
-rw-r--r--snippets/python-mode/try-argv1
-rw-r--r--snippets/sh-mode/sh-shebang1
-rw-r--r--snippets/snakemake-mode/cdrun1
-rw-r--r--snippets/snakemake-mode/rule1
-rw-r--r--snippets/text-mode/commented-anchor1
-rw-r--r--snippets/text-mode/initials-comment1
-rw-r--r--snippets/text-mode/priority-todo1
-rw-r--r--snippets/text-mode/random-num1
-rw-r--r--snippets/text-mode/todo1
44 files changed, 0 insertions, 44 deletions
diff --git a/snippets/ess-mode/command-args b/snippets/ess-mode/command-args
index 87b6643..43b6346 100644
--- a/snippets/ess-mode/command-args
+++ b/snippets/ess-mode/command-args
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: command args
# key: cargs
# --
args <- commandArgs(trailingOnly = TRUE)
diff --git a/snippets/ess-mode/datatable b/snippets/ess-mode/datatable
index a77253b..c5d7412 100644
--- a/snippets/ess-mode/datatable
+++ b/snippets/ess-mode/datatable
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: data.table
# key: dt
# group: imports
# --
diff --git a/snippets/ess-mode/dplyr b/snippets/ess-mode/dplyr
index 1c5024d..db26ea1 100644
--- a/snippets/ess-mode/dplyr
+++ b/snippets/ess-mode/dplyr
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: dplyr
# key: dp
# group: imports
# --
diff --git a/snippets/ess-mode/ggplot2 b/snippets/ess-mode/ggplot2
index 55a5bc6..1b27aa6 100644
--- a/snippets/ess-mode/ggplot2
+++ b/snippets/ess-mode/ggplot2
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: ggplot2
# key: gg
# group: imports
# --
diff --git a/snippets/ess-mode/lme4 b/snippets/ess-mode/lme4
index 2a54c58..496775e 100644
--- a/snippets/ess-mode/lme4
+++ b/snippets/ess-mode/lme4
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: lme4
# key: lme
# group: imports
# --
diff --git a/snippets/ess-mode/par b/snippets/ess-mode/par
index 5808d9c..52540b8 100644
--- a/snippets/ess-mode/par
+++ b/snippets/ess-mode/par
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: par
# key: par
# --
par(mfrow=c(2, 3)) \ No newline at end of file
diff --git a/snippets/ess-mode/rscript-shebang b/snippets/ess-mode/rscript-shebang
index 7b47645..bb0dd63 100644
--- a/snippets/ess-mode/rscript-shebang
+++ b/snippets/ess-mode/rscript-shebang
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: Rscript shebang
# key: sb
# --
#!/usr/bin/env Rscript
diff --git a/snippets/latex-mode/equation b/snippets/latex-mode/equation
index 5eef9ce..139ff12 100644
--- a/snippets/latex-mode/equation
+++ b/snippets/latex-mode/equation
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: equation
# key: eq
# --
\begin{equation}
diff --git a/snippets/latex-mode/figure b/snippets/latex-mode/figure
index afa8cfb..b530228 100644
--- a/snippets/latex-mode/figure
+++ b/snippets/latex-mode/figure
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: figure
# key: fig
# --
\begin{figure}
diff --git a/snippets/latex-mode/si b/snippets/latex-mode/si
index ada5460..9e35cf9 100644
--- a/snippets/latex-mode/si
+++ b/snippets/latex-mode/si
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: si
# key: si
# --
\SI{$1}{$2} $0 \ No newline at end of file
diff --git a/snippets/python-mode/defaultdict b/snippets/python-mode/defaultdict
index 35a381c..29563d0 100644
--- a/snippets/python-mode/defaultdict
+++ b/snippets/python-mode/defaultdict
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: defaultdict
# key: dd
# group: imports
# --
diff --git a/snippets/python-mode/docopt-args b/snippets/python-mode/docopt-args
index 0743633..6971cff 100644
--- a/snippets/python-mode/docopt-args
+++ b/snippets/python-mode/docopt-args
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: docopt args
# key: da
# --
args = docopt(__doc__)
diff --git a/snippets/python-mode/examples-header b/snippets/python-mode/examples-header
index 92daa56..aa3fe8b 100644
--- a/snippets/python-mode/examples-header
+++ b/snippets/python-mode/examples-header
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: Examples header
# key: eh
# condition: 'force-in-comment
# --
diff --git a/snippets/python-mode/figax b/snippets/python-mode/figax
index 65d4ce8..2a67c37 100644
--- a/snippets/python-mode/figax
+++ b/snippets/python-mode/figax
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: figax
# key: fax
# --
fig, ax = plt.subplots()
diff --git a/snippets/python-mode/figaxs b/snippets/python-mode/figaxs
index 7e99635..f3fe069 100644
--- a/snippets/python-mode/figaxs
+++ b/snippets/python-mode/figaxs
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: figaxs
# key: faxs
# --
fig, axs = plt.subplots($0) \ No newline at end of file
diff --git a/snippets/python-mode/h5py b/snippets/python-mode/h5py
index 3eb0ceb..da3006d 100644
--- a/snippets/python-mode/h5py
+++ b/snippets/python-mode/h5py
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: h5py
# key: h5
# group: imports
# --
diff --git a/snippets/python-mode/mpi4py b/snippets/python-mode/mpi4py
index 6b77ddc..4611f0c 100644
--- a/snippets/python-mode/mpi4py
+++ b/snippets/python-mode/mpi4py
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: mpi5py
# key: mpi
# group: imports
# --
diff --git a/snippets/python-mode/numpy-random-seed b/snippets/python-mode/numpy-random-seed
index b8db465..1b71b0d 100644
--- a/snippets/python-mode/numpy-random-seed
+++ b/snippets/python-mode/numpy-random-seed
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: numpy random seed
# key: nrs
# --
np.random.seed(`(random 4294967295)`)
diff --git a/snippets/python-mode/numpy-testing b/snippets/python-mode/numpy-testing
index c84868d..55335f9 100644
--- a/snippets/python-mode/numpy-testing
+++ b/snippets/python-mode/numpy-testing
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: numpy testing
# key: npt
# group: imports
# --
diff --git a/snippets/python-mode/ordereddict b/snippets/python-mode/ordereddict
index e49e377..0390b9a 100644
--- a/snippets/python-mode/ordereddict
+++ b/snippets/python-mode/ordereddict
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: ordereddict
# key: od
# group: imports
# --
diff --git a/snippets/python-mode/pandas b/snippets/python-mode/pandas
index 7239528..15bd718 100644
--- a/snippets/python-mode/pandas
+++ b/snippets/python-mode/pandas
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: pandas
# key: pd
# group: imports
# --
diff --git a/snippets/python-mode/pandas-hdf-store b/snippets/python-mode/pandas-hdf-store
index a19ab13..ae7212f 100644
--- a/snippets/python-mode/pandas-hdf-store
+++ b/snippets/python-mode/pandas-hdf-store
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: Pandas HDF5 store
# key: pdhs
# --
with pd.HDFStore($1) as store:
diff --git a/snippets/python-mode/parameter-item b/snippets/python-mode/parameter-item
index 296059f..9304694 100644
--- a/snippets/python-mode/parameter-item
+++ b/snippets/python-mode/parameter-item
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: parameter item
# key: par
# expand-env: ((yas-indent-line 'fixed))
# --
diff --git a/snippets/python-mode/parameters-header b/snippets/python-mode/parameters-header
index 90eb94b..2af25f3 100644
--- a/snippets/python-mode/parameters-header
+++ b/snippets/python-mode/parameters-header
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: parameters header
# key: ph
# condition: 'force-in-comment
# --
diff --git a/snippets/python-mode/plotting-imports b/snippets/python-mode/plotting-imports
index 2900948..465bf52 100644
--- a/snippets/python-mode/plotting-imports
+++ b/snippets/python-mode/plotting-imports
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: plotting imports
# key: plta
# group: imports
# --
diff --git a/snippets/python-mode/pprint b/snippets/python-mode/pprint
index 0c09793..a7b3954 100644
--- a/snippets/python-mode/pprint
+++ b/snippets/python-mode/pprint
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: pprint
# key: pp
# group: imports
# --
diff --git a/snippets/python-mode/pseaborn b/snippets/python-mode/pseaborn
index 1667078..764c11c 100644
--- a/snippets/python-mode/pseaborn
+++ b/snippets/python-mode/pseaborn
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: pseaborn
# key: sns
# group: imports
# --
diff --git a/snippets/python-mode/pytest b/snippets/python-mode/pytest
index e81d0a9..356af13 100644
--- a/snippets/python-mode/pytest
+++ b/snippets/python-mode/pytest
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: pytest
# key: pt
# group: imports
# --
diff --git a/snippets/python-mode/pytest-def b/snippets/python-mode/pytest-def
index 499dbf9..819f5a3 100644
--- a/snippets/python-mode/pytest-def
+++ b/snippets/python-mode/pytest-def
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: pytest def
# key: td
# group: testing
# --
diff --git a/snippets/python-mode/python-shebang b/snippets/python-mode/python-shebang
index fdacfed..041dcf1 100644
--- a/snippets/python-mode/python-shebang
+++ b/snippets/python-mode/python-shebang
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: Python shebang
# key: sb
# --
#!/usr/bin/env python${1:3}
diff --git a/snippets/python-mode/returns-header b/snippets/python-mode/returns-header
index 6fb1cda..0285e5f 100644
--- a/snippets/python-mode/returns-header
+++ b/snippets/python-mode/returns-header
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: Returns header
# key: rh
# condition: 'force-in-comment
# --
diff --git a/snippets/python-mode/subplots-adjust b/snippets/python-mode/subplots-adjust
index f88417c..37e46a1 100644
--- a/snippets/python-mode/subplots-adjust
+++ b/snippets/python-mode/subplots-adjust
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: subplots-adjust
# key: sad
# group: matplotlib
# --
diff --git a/snippets/python-mode/test-method b/snippets/python-mode/test-method
index e0e1be9..ee60912 100644
--- a/snippets/python-mode/test-method
+++ b/snippets/python-mode/test-method
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: test method
# key: tm
# group: testing
# Copied from builtin deftest and given new key.
diff --git a/snippets/python-mode/theano b/snippets/python-mode/theano
index c3a3375..a6ef8c8 100644
--- a/snippets/python-mode/theano
+++ b/snippets/python-mode/theano
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: theano
# key: tn
# group: imports
# --
diff --git a/snippets/python-mode/tight-layout b/snippets/python-mode/tight-layout
index 7c42be5..f73c35a 100644
--- a/snippets/python-mode/tight-layout
+++ b/snippets/python-mode/tight-layout
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: tight-layout
# key: tl
# group: matplotlib
# --
diff --git a/snippets/python-mode/try-argv b/snippets/python-mode/try-argv
index 5b515ad..fdcac6b 100644
--- a/snippets/python-mode/try-argv
+++ b/snippets/python-mode/try-argv
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: try argv
# key: targv
# --
try:
diff --git a/snippets/sh-mode/sh-shebang b/snippets/sh-mode/sh-shebang
index c594a21..6157a93 100644
--- a/snippets/sh-mode/sh-shebang
+++ b/snippets/sh-mode/sh-shebang
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: sh shebang
# key: sb
# --
#!/usr/bin/env sh
diff --git a/snippets/snakemake-mode/cdrun b/snippets/snakemake-mode/cdrun
index de1ef1c..a654279 100644
--- a/snippets/snakemake-mode/cdrun
+++ b/snippets/snakemake-mode/cdrun
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: cdrun
# key: cd
# --
"cd $(dirname {${1:input[0]}}) && ./$(basename {$1})" \ No newline at end of file
diff --git a/snippets/snakemake-mode/rule b/snippets/snakemake-mode/rule
index 8d6204f..f2afc4f 100644
--- a/snippets/snakemake-mode/rule
+++ b/snippets/snakemake-mode/rule
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: rule
# key: rl
# expand-env: ((yas-indent-line 'fixed))
# --
diff --git a/snippets/text-mode/commented-anchor b/snippets/text-mode/commented-anchor
index d8074aa..0d2c357 100644
--- a/snippets/text-mode/commented-anchor
+++ b/snippets/text-mode/commented-anchor
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: commented anchor
# key: ar
# --
`(km/yas-with-comment "anchor:")` \ No newline at end of file
diff --git a/snippets/text-mode/initials-comment b/snippets/text-mode/initials-comment
index 1d1dde4..94eb977 100644
--- a/snippets/text-mode/initials-comment
+++ b/snippets/text-mode/initials-comment
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: initials comment
# key: ic
# --
`(km/yas-with-comment "KM: ")` \ No newline at end of file
diff --git a/snippets/text-mode/priority-todo b/snippets/text-mode/priority-todo
index 2e5c50d..f31167b 100644
--- a/snippets/text-mode/priority-todo
+++ b/snippets/text-mode/priority-todo
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: priority-todo
# key: cat
# --
`(km/yas-with-comment "[#A] TODO: ")` \ No newline at end of file
diff --git a/snippets/text-mode/random-num b/snippets/text-mode/random-num
index 49aa627..c83d8ac 100644
--- a/snippets/text-mode/random-num
+++ b/snippets/text-mode/random-num
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: random number
# key: rnum
# condition: 'force-in-comment
# --
diff --git a/snippets/text-mode/todo b/snippets/text-mode/todo
index 331b154..be4408a 100644
--- a/snippets/text-mode/todo
+++ b/snippets/text-mode/todo
@@ -1,5 +1,4 @@
# -*- mode: snippet -*-
-# name: todo
# key: ct
# --
`(km/yas-with-comment "TODO: ")` \ No newline at end of file