summary refs log tree commit diff
path: root/emacs/etc/snippets
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-06-01 19:35:59 -0700
committerFranck Cuny <franck@fcuny.net>2023-06-01 19:35:59 -0700
commita187752c824b47052d33d3bc12749b5a7d2e8191 (patch)
treed939397496dcae8a7634a93b159fab57ee1752ec /emacs/etc/snippets
parentelfeed: add more feeds (diff)
downloademacs.d-a187752c824b47052d33d3bc12749b5a7d2e8191.tar.gz
🤡
Change-Id: I06b104d79deac199f9cd9cdae705e333d23cc852
Diffstat (limited to 'emacs/etc/snippets')
-rw-r--r--emacs/etc/snippets/emacs-lisp-mode/defun6
-rw-r--r--emacs/etc/snippets/emacs-lisp-mode/format5
-rw-r--r--emacs/etc/snippets/emacs-lisp-mode/header18
-rw-r--r--emacs/etc/snippets/go-mode/method8
-rw-r--r--emacs/etc/snippets/go-mode/test7
-rw-r--r--emacs/etc/snippets/go-mode/type8
-rw-r--r--emacs/etc/snippets/markdown-mode/new-blog-entry12
-rw-r--r--emacs/etc/snippets/org-mode/begin8
-rw-r--r--emacs/etc/snippets/org-mode/srcsh7
-rw-r--r--emacs/etc/snippets/python-mode/function6
-rw-r--r--emacs/etc/snippets/python-mode/main9
11 files changed, 0 insertions, 94 deletions
diff --git a/emacs/etc/snippets/emacs-lisp-mode/defun b/emacs/etc/snippets/emacs-lisp-mode/defun
deleted file mode 100644
index 1c1282b..0000000
--- a/emacs/etc/snippets/emacs-lisp-mode/defun
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- mode: snippet -*-
-# name: function
-# key: d
-# --
-(defun $1 ($2)
-$0)
\ No newline at end of file
diff --git a/emacs/etc/snippets/emacs-lisp-mode/format b/emacs/etc/snippets/emacs-lisp-mode/format
deleted file mode 100644
index 2bd648f..0000000
--- a/emacs/etc/snippets/emacs-lisp-mode/format
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: format
-# key: f
-# --
-(format "$1" $0)
\ No newline at end of file
diff --git a/emacs/etc/snippets/emacs-lisp-mode/header b/emacs/etc/snippets/emacs-lisp-mode/header
deleted file mode 100644
index b868f51..0000000
--- a/emacs/etc/snippets/emacs-lisp-mode/header
+++ /dev/null
@@ -1,18 +0,0 @@
-# -*- mode: snippet -*-
-# name: header
-# key: header
-# --
-;;; `(file-name-nondirectory (buffer-file-name))` --- ${1:summary} -*- lexical-binding: t -*-
-;; Author: Franck Cuny <franck@fcuny.net>
-
-;;; Commentary:
-
-;; ${2:commentary}
-
-;;; Code:
-
-${3:(message "Hello World!")}
-
-(provide '`(file-name-nondirectory (buffer-file-name))`)
-
-;;; `(file-name-nondirectory (buffer-file-name))` ends here
\ No newline at end of file
diff --git a/emacs/etc/snippets/go-mode/method b/emacs/etc/snippets/go-mode/method
deleted file mode 100644
index 78e61fc..0000000
--- a/emacs/etc/snippets/go-mode/method
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- mode: snippet -*-
-# name: method
-# key: method
-# --
-// $2 ${5:...}
-func (${1:recv}) ${2:name}(${3:args}) $4 {
-	$0
-}
\ No newline at end of file
diff --git a/emacs/etc/snippets/go-mode/test b/emacs/etc/snippets/go-mode/test
deleted file mode 100644
index 3140ec2..0000000
--- a/emacs/etc/snippets/go-mode/test
+++ /dev/null
@@ -1,7 +0,0 @@
-# -*- mode: snippet -*-
-# name: test
-# key: test
-# --
-func Test$1(t *testing.T) {
-	$0
-}
\ No newline at end of file
diff --git a/emacs/etc/snippets/go-mode/type b/emacs/etc/snippets/go-mode/type
deleted file mode 100644
index d8b2004..0000000
--- a/emacs/etc/snippets/go-mode/type
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- mode: snippet -*-
-# name: type
-# key: type
-# --
-// $3
-type $1 $2 {
-	$0
-}
\ No newline at end of file
diff --git a/emacs/etc/snippets/markdown-mode/new-blog-entry b/emacs/etc/snippets/markdown-mode/new-blog-entry
deleted file mode 100644
index ad6a53f..0000000
--- a/emacs/etc/snippets/markdown-mode/new-blog-entry
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- mode: snippet -*-
-# name: blogtop
-# key: blogtop
-# --
----
-title: ${1:Title}
-date: `(format-time-string "%Y-%m-%d" nil nil)`
-tags:
-  - $2
----
-
-$0
diff --git a/emacs/etc/snippets/org-mode/begin b/emacs/etc/snippets/org-mode/begin
deleted file mode 100644
index 15d66d8..0000000
--- a/emacs/etc/snippets/org-mode/begin
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- mode: snippet -*-
-# name: begin
-# key: begin
-# uuid: begin
-# --
-#+begin_${1:type} ${2:options}
-`%`$0
-#+end_$1
diff --git a/emacs/etc/snippets/org-mode/srcsh b/emacs/etc/snippets/org-mode/srcsh
deleted file mode 100644
index 0ced1f6..0000000
--- a/emacs/etc/snippets/org-mode/srcsh
+++ /dev/null
@@ -1,7 +0,0 @@
-# -*- mode: snippet -*-
-# name: srcsh
-# key: <ssh
-# --
-#+begin_src sh
-$0
-#+end_src
\ No newline at end of file
diff --git a/emacs/etc/snippets/python-mode/function b/emacs/etc/snippets/python-mode/function
deleted file mode 100644
index ffde801..0000000
--- a/emacs/etc/snippets/python-mode/function
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- mode: snippet -*-
-# name: function
-# key: fn
-# --
-def $1($2):
-  $3
\ No newline at end of file
diff --git a/emacs/etc/snippets/python-mode/main b/emacs/etc/snippets/python-mode/main
deleted file mode 100644
index b1564a8..0000000
--- a/emacs/etc/snippets/python-mode/main
+++ /dev/null
@@ -1,9 +0,0 @@
-# -*- mode: snippet -*-
-# name: main
-# key: main
-# --
-def main():
-    pass
-
-if __name__ == "__main__":
-    main()
\ No newline at end of file