Drop YASnippet
authorAmin Bandali <bandali@gnu.org>
Sun, 20 Nov 2022 00:12:43 +0000 (19:12 -0500)
committerAmin Bandali <bandali@gnu.org>
Sun, 20 Nov 2022 00:12:43 +0000 (19:12 -0500)
I don't really need these or use them nearly as much as I used to.
For similar needs, I think I'll be able to get by using Emacs's own
Abbrev just fine.

24 files changed:
.emacs.d/etc/yasnippet/snippets/java-mode/format [deleted file]
.emacs.d/etc/yasnippet/snippets/java-mode/new [deleted file]
.emacs.d/etc/yasnippet/snippets/java-mode/printf [deleted file]
.emacs.d/etc/yasnippet/snippets/java-mode/println [deleted file]
.emacs.d/etc/yasnippet/snippets/java-mode/return [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/cite [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/eg [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/emph [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/etal [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/etc [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/ie [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/itemize [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/label [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/ref [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/section [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/subsection [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/textbf [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/texttt [deleted file]
.emacs.d/etc/yasnippet/snippets/latex-mode/usepackage [deleted file]
.emacs.d/etc/yasnippet/snippets/log-edit-mode/thankgnu [deleted file]
.emacs.d/etc/yasnippet/snippets/message-mode/thankgnu [deleted file]
.emacs.d/init.el

diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/format b/.emacs.d/etc/yasnippet/snippets/java-mode/format
deleted file mode 100644 (file)
index 7620366..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: String.format
-# key: f
-# --
-String.format("$1${2:%n}");$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/new b/.emacs.d/etc/yasnippet/snippets/java-mode/new
deleted file mode 100644 (file)
index 1ffd2e5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: new
-# key: new
-# --
-${1:Type} ${2:obj} = new ${3:Constr}(${4:args});$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/printf b/.emacs.d/etc/yasnippet/snippets/java-mode/printf
deleted file mode 100644 (file)
index 1b8c277..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: printf
-# key: pf
-# --
-System.out.printf("$1${2:%n}"$3);$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/println b/.emacs.d/etc/yasnippet/snippets/java-mode/println
deleted file mode 100644 (file)
index 7bb944c..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: println
-# key: p
-# --
-System.out.println($1);$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/return b/.emacs.d/etc/yasnippet/snippets/java-mode/return
deleted file mode 100644 (file)
index 977859e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: return
-# key: r
-# --
-return $1;$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/cite b/.emacs.d/etc/yasnippet/snippets/latex-mode/cite
deleted file mode 100644 (file)
index 3b4d161..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: cite
-# key: c
-# --
-$1${2:~}\cite{${3:$$(unless yas-modified-p (mapconcat 'identity (reftex-citation 'dont-insert) ","))}}$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/eg b/.emacs.d/etc/yasnippet/snippets/latex-mode/eg
deleted file mode 100644 (file)
index 7c025e3..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: eg
-# key: eg
-# --
-\emph{e.g.}$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/emph b/.emacs.d/etc/yasnippet/snippets/latex-mode/emph
deleted file mode 100644 (file)
index 36b19d7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: emph
-# key: e
-# --
-\emph{$1}$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate b/.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate
deleted file mode 100644 (file)
index bcb1df1..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# -*- mode: snippet -*-
-# name: enumerate
-# key: o
-# --
-\begin{enumerate}
-\item $0
-\end{enumerate}
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/etal b/.emacs.d/etc/yasnippet/snippets/latex-mode/etal
deleted file mode 100644 (file)
index 96e1fb0..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: etal
-# key: etal
-# --
-\emph{et~al.}$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/etc b/.emacs.d/etc/yasnippet/snippets/latex-mode/etc
deleted file mode 100644 (file)
index 86b698e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: etc
-# key: etc
-# --
-\emph{etc.}$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/ie b/.emacs.d/etc/yasnippet/snippets/latex-mode/ie
deleted file mode 100644 (file)
index cb91c2a..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: ie
-# key: ie
-# --
-\emph{i.e.}$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/itemize b/.emacs.d/etc/yasnippet/snippets/latex-mode/itemize
deleted file mode 100644 (file)
index b7a6949..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# -*- mode: snippet -*-
-# name: itemize
-# key: u
-# --
-\begin{itemize}
-\item $0
-\end{itemize}
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/label b/.emacs.d/etc/yasnippet/snippets/latex-mode/label
deleted file mode 100644 (file)
index 8a98d7e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: label
-# key: lbl
-# --
-\label{$0}
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand b/.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand
deleted file mode 100644 (file)
index e9e03ca..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: newcommand
-# key: cmd
-# --
-\newcommand{\\${1:name}}${2:[${3:0}]}{$0}
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/ref b/.emacs.d/etc/yasnippet/snippets/latex-mode/ref
deleted file mode 100644 (file)
index 7eef596..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: ref
-# key: r
-# --
-$1${2:~}\ref{${3:$$(unless yas-modified-p (reftex-reference nil nil))}}$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/section b/.emacs.d/etc/yasnippet/snippets/latex-mode/section
deleted file mode 100644 (file)
index e1a2710..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- mode: snippet -*-
-# name: section
-# key: s
-# --
-\section{${1:name}}
-\label{sec:${2:label}}
-
-$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/subsection b/.emacs.d/etc/yasnippet/snippets/latex-mode/subsection
deleted file mode 100644 (file)
index ddfa13d..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- mode: snippet -*-
-# name: subsection
-# key: ss
-# --
-\subsection{${1:name}}
-\label{sec:${2:label}}
-
-$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/textbf b/.emacs.d/etc/yasnippet/snippets/latex-mode/textbf
deleted file mode 100644 (file)
index 84171d7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: textbf
-# key: b
-# --
-\textbf{$1}$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/texttt b/.emacs.d/etc/yasnippet/snippets/latex-mode/texttt
deleted file mode 100644 (file)
index 43cd769..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: texttt
-# key: tt
-# --
-\texttt{$1}$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/usepackage b/.emacs.d/etc/yasnippet/snippets/latex-mode/usepackage
deleted file mode 100644 (file)
index 3405077..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: usepackage
-# key: p
-# --
-\usepackage{$0}
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/log-edit-mode/thankgnu b/.emacs.d/etc/yasnippet/snippets/log-edit-mode/thankgnu
deleted file mode 100644 (file)
index eafcbd7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: thankgnu
-# key: th
-# --
-[RT#$1] Add ${2:$$(yas-choose-value '("Contributor" "Sustaining Contributor" "Patron"))} $3 to the 20${4:21} ThankGNUs list$0
\ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/message-mode/thankgnu b/.emacs.d/etc/yasnippet/snippets/message-mode/thankgnu
deleted file mode 100644 (file)
index 35c233a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# -*- mode: snippet -*-
-# name: thankgnu
-# key: th
-# --
-Added ${2:$$(yas-choose-value '("Contributor" "Sustaining Contributor" "Patron"))} $3 to 20${4:21}supporters.html.
-
-Moving to campaigns.$0
index f8a44e7..525348d 100644 (file)
@@ -60,8 +60,7 @@
   ;;    (debbugs "0.29")
   ;;    (delight "1.7")
   ;;    (emms "7.7")
   ;;    (debbugs "0.29")
   ;;    (delight "1.7")
   ;;    (emms "7.7")
-  ;;    (rt-liberation "2.4")
-  ;;    (yasnippet "0.14.0")))
+  ;;    (rt-liberation "2.4")))
 (package-initialize))
 
 (setq package-archive-upload-base "/ssh:caffeine:~/www/p/elpa")
 (package-initialize))
 
 (setq package-archive-upload-base "/ssh:caffeine:~/www/p/elpa")
@@ -778,31 +777,6 @@ Effectively a very simple light/dark theme toggle switch."
   ;; Highlight TODO in buffers.
   (global-hl-todo-mode))
 
   ;; Highlight TODO in buffers.
   (global-hl-todo-mode))
 
-(run-with-idle-timer 0.6 nil #'require 'yasnippet)
-(with-eval-after-load 'yasnippet
-  (declare-function yas-reload-all
-                    "yasnippet" (&optional no-jit interactive))
-  (declare-function yas-maybe-expand-abbrev-key-filter
-                    "yasnippet" (cmd))
-
-  (defconst yas-verbosity-cur yas-verbosity)
-  (setq yas-verbosity 2
-        yas-snippet-dirs `(,(b/etc "yasnippet/snippets")))
-  ;; (add-to-list 'yas-snippet-dirs "~/src/git/guix/etc/snippets" t)
-  (yas-reload-all)
-  (setq yas-verbosity yas-verbosity-cur)
-
-  (defun b/yas-maybe-expand-abbrev-key-filter (cmd)
-    (when (and (yas-maybe-expand-abbrev-key-filter cmd)
-               (not (bound-and-true-p git-commit-mode)))
-      cmd))
-  (defconst b/yas-maybe-expand
-    '(menu-item "" yas-expand
-                :filter b/yas-maybe-expand-abbrev-key-filter))
-  (define-key yas-minor-mode-map (kbd "SPC") b/yas-maybe-expand)
-
-  (yas-global-mode))
-
 ;; `debbugs'
 (global-set-key (kbd "C-c D d") #'debbugs-gnu)
 (global-set-key (kbd "C-c D b") #'debbugs-gnu-bugs)
 ;; `debbugs'
 (global-set-key (kbd "C-c D d") #'debbugs-gnu)
 (global-set-key (kbd "C-c D b") #'debbugs-gnu-bugs)
@@ -880,8 +854,7 @@ Effectively a very simple light/dark theme toggle switch."
 (with-eval-after-load 'delight
   (delight 'auto-fill-function " f" "simple")
   (delight 'abbrev-mode "" "abbrev")
 (with-eval-after-load 'delight
   (delight 'auto-fill-function " f" "simple")
   (delight 'abbrev-mode "" "abbrev")
-  (delight 'mml-mode " mml" "mml")
-  (delight 'yas-minor-mode "" "yasnippet"))
+  (delight 'mml-mode " mml" "mml"))
 
 (require 'bandali-po)
 
 
 (require 'bandali-po)