From c3875265ccdd1d72f06a16ab1ca725b7cb2ec35b Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Mon, 13 Sep 2021 22:49:27 -0700 Subject: Consolidated resources and meta files. --- snippets/emacs-lisp-mode/add-hook | 6 ------ snippets/emacs-lisp-mode/cond | 8 -------- snippets/emacs-lisp-mode/defun | 9 --------- snippets/emacs-lisp-mode/if | 7 ------- snippets/emacs-lisp-mode/lambda | 7 ------- snippets/emacs-lisp-mode/setq | 5 ----- snippets/org-mode/default | 16 ---------------- snippets/org-mode/img | 7 ------- snippets/org-mode/quote | 7 ------- snippets/org-mode/src | 7 ------- snippets/org-mode/table | 11 ----------- 11 files changed, 90 deletions(-) delete mode 100644 snippets/emacs-lisp-mode/add-hook delete mode 100644 snippets/emacs-lisp-mode/cond delete mode 100644 snippets/emacs-lisp-mode/defun delete mode 100644 snippets/emacs-lisp-mode/if delete mode 100644 snippets/emacs-lisp-mode/lambda delete mode 100644 snippets/emacs-lisp-mode/setq delete mode 100644 snippets/org-mode/default delete mode 100644 snippets/org-mode/img delete mode 100644 snippets/org-mode/quote delete mode 100644 snippets/org-mode/src delete mode 100644 snippets/org-mode/table (limited to 'snippets') diff --git a/snippets/emacs-lisp-mode/add-hook b/snippets/emacs-lisp-mode/add-hook deleted file mode 100644 index e1019e8..0000000 --- a/snippets/emacs-lisp-mode/add-hook +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: add-hook -# key: hook -# -- -(add-hook '${1:mode-to-hook-on} '${2:function}) -$0 \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/cond b/snippets/emacs-lisp-mode/cond deleted file mode 100644 index 738ca0a..0000000 --- a/snippets/emacs-lisp-mode/cond +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: cond -# key: cond -# -- -(cond (${1:first-condition} ${2:first-return}) - (${3:second-condition} ${4:second-return}) - (t ${5:always-true-return})) -$0 \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/defun b/snippets/emacs-lisp-mode/defun deleted file mode 100644 index e67e483..0000000 --- a/snippets/emacs-lisp-mode/defun +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: defun -# key: def -# -- -(defun ${1:function-name} (${2:arguments}) - "${3:Docstring: Indicate in imperitave voice what the function does. -Second and subsequent lines must have nil indentation to preserve -formatting in }" - $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/if b/snippets/emacs-lisp-mode/if deleted file mode 100644 index 8b464af..0000000 --- a/snippets/emacs-lisp-mode/if +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# -- -(if (${1:condition}) - (${2:then}) - ${3:else}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/lambda b/snippets/emacs-lisp-mode/lambda deleted file mode 100644 index 9d11249..0000000 --- a/snippets/emacs-lisp-mode/lambda +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: lambda -# key: lambda -# -- -(lambda (${1:argument(s)}) - "${2:Docstring}" - $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/setq b/snippets/emacs-lisp-mode/setq deleted file mode 100644 index f315eae..0000000 --- a/snippets/emacs-lisp-mode/setq +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: setq -# key: setq -# -- -(setq $0) \ No newline at end of file diff --git a/snippets/org-mode/default b/snippets/org-mode/default deleted file mode 100644 index f667c69..0000000 --- a/snippets/org-mode/default +++ /dev/null @@ -1,16 +0,0 @@ -# -*- mode: snippet -*- -# name: default -# key: $default -# -- -# -*- mode: org; -*- - -#+TITLE: ${1:Default Title} -#+AUTHOR: ${2:`(if (eq user-full-name "") "Default Author" user-full-name)`} -#+DATE: ${3:`(with-temp-buffer (org-insert-time-stamp (current-time)))`} - -#+SETUPFILE: ~/.emacs.d/templates/documents/${4:`(if (string= system-type "gnu/linux") "gnu-" "ms-:")`}default.setup -#+INCLUDE: ~/.emacs.d/templates/documents/title-default.org - -$0 - - diff --git a/snippets/org-mode/img b/snippets/org-mode/img deleted file mode 100644 index 5632367..0000000 --- a/snippets/org-mode/img +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: img -# key: $img -# -- -#+NAME: ${1:image-title} -#+CAPTION[${2:Short caption}]: $2. ${3:Optional additional details} -[[`(concat user-emacs-directory "img/")`$0--]] \ No newline at end of file diff --git a/snippets/org-mode/quote b/snippets/org-mode/quote deleted file mode 100644 index e716010..0000000 --- a/snippets/org-mode/quote +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: quote -# key: $quote -# -- -#+BEGIN_QUOTE -$0 -#+END_QUOTE diff --git a/snippets/org-mode/src b/snippets/org-mode/src deleted file mode 100644 index cdada53..0000000 --- a/snippets/org-mode/src +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: src -# key: $src -# -- -#+BEGIN_SRC ${1:emacs-lisp} ${2::tangle yes} -$0 -#+END_SRC diff --git a/snippets/org-mode/table b/snippets/org-mode/table deleted file mode 100644 index 9e40d92..0000000 --- a/snippets/org-mode/table +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: table -# key: $tab -# -- -#+NAME: ${1:table-title} -#+CAPTION[${2:Short caption}]: $2. ${3:Optional additional details} -#+ATTR_LATEX: :booktabs t -| *${4:Title of Entries}* | *${5:Column 2}* | *${6:Column 2}* | -|-------------------------+-----------------+-----------------| -| *${7:Entry 1}* | $0 | | -| | | | -- cgit v1.2.3