forked from FG42/FG42
1
0
Fork 0

Remove yasnippet completely

This commit is contained in:
Sameer Rahmani 2024-05-01 12:42:12 +01:00
parent 4b6ca4a90e
commit cd6cecdbbb
Signed by: lxsameer
GPG Key ID: 8741FACBF412FFA5
13 changed files with 0 additions and 100 deletions

View File

@ -88,7 +88,6 @@ in
cp -rv ${src}/lisp/build.el $LISPDIR/lisp
cp -rv ${src}/share $out/
cp -rv ${src}/snippets $LISPDIR/snippets
cp "${fontsConf}" $LISPDIR/fonts.conf
cp "${configFile}" $LISPDIR/config.json

View File

@ -39,8 +39,6 @@ let
exec-path-from-shell
avy
ace-window
yasnippet
yasnippet-snippets
flycheck
org
org-super-agenda

View File

@ -171,25 +171,6 @@ contextual information."
(global-display-line-numbers-mode 1)))
(use! yasnippet
"A Snippet is a template system for Emacs. "
:config
(let* ((snippet-home
(path-join
(file-name-directory
(locate-library "yasnippet-snippets")) "snippets"))
(local-snippet (path-join (file-name-directory
(locate-library "fg42")) "../snippets"))
(user-snippets (path-join fg42/config-dir "snippets")))
(setq yas-snippet-dirs `(,user-snippets ,local-snippet ,snippet-home))
(yas-global-mode 1)))
(use! yasnippet-snippets
"Yasnippet's snippets."
:after yasnippet)
(use! flycheck
"Flycheck is a modern on-the-fly syntax checking extension for GNU Emacs."
:config (global-flycheck-mode))

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# contributor: lxsameer <lxsameer@gnu.org>
# name: C++-mode section
# key: sec
# --
// ----------------------------------------------------------------------------
// $0
// ----------------------------------------------------------------------------

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# contributor: lxsameer <lxsameer@gnu.org>
# name: Latex begin block
# key: al*
# --
\begin{align*}
$0
\end{align*}

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# contributor: lxsameer <lxsameer@gnu.org>
# name: Latex begin block
# key: begin
# --
\begin{$1}
$0
\end{$1}

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# contributor: lxsameer <lxsameer@gnu.org>
# name: Latex begin block
# key: block
# --
#+BEGIN_{$1}
$0
#+END_{$1}

View File

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# contributor: lxsameer <lxsameer@gnu.org>
# name: Latex equation* block
# key: eq*
# --
\begin{equation*}
$0
\end{equation*}

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# contributor: lxsameer <lxsameer@gnu.org>
# name: Latex frac
# key: fr
# --
\frac{$1}{$2} $0

View File

@ -1,9 +0,0 @@
# -*- mode: snippet -*-
# contributor: lxsameer <lxsameer@gnu.org>
# name: Latex Definition box
# key: def
# --
#+attr_latex: :options {Definition}
#+BEGIN_infobox
$0
#+END_infobox

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# contributor: lxsameer <lxsameer@gnu.org>
# name: Latex \prod
# key: prod
# --
\prod ^{$1} _{$2} $0

View File

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# contributor: lxsameer <lxsameer@gnu.org>
# name: Latex \sum
# key: sum
# --
\sum ^{$1} _{$2} $0

View File

@ -1,11 +0,0 @@
# -*- mode: snippet -*-
# contributor: lxsameer <lxsameer@gnu.org>
# name: to write block
# key: tw
# Adds a TOWRITE block to org file. Your exporter has to
# know how to deal with this block. For example for latex you need
# to include this header `#+LATEX_HEADER: \newenvironment{TOWRITE}{...}{...}`
# --
#+BEGIN_TOWRITE
$0
#+END_TOWRITE