diff --git a/nix/fg42/derivation.nix b/nix/fg42/derivation.nix index 81f4135..9af9f75 100644 --- a/nix/fg42/derivation.nix +++ b/nix/fg42/derivation.nix @@ -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 diff --git a/nix/modules/editor/default.nix b/nix/modules/editor/default.nix index 06fdd15..177c691 100644 --- a/nix/modules/editor/default.nix +++ b/nix/modules/editor/default.nix @@ -39,8 +39,6 @@ let exec-path-from-shell avy ace-window - yasnippet - yasnippet-snippets flycheck org org-super-agenda diff --git a/nix/modules/editor/lisp/fg42/editor.el b/nix/modules/editor/lisp/fg42/editor.el index f368fe9..07f06af 100644 --- a/nix/modules/editor/lisp/fg42/editor.el +++ b/nix/modules/editor/lisp/fg42/editor.el @@ -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)) diff --git a/snippets/c++-mode/section b/snippets/c++-mode/section deleted file mode 100644 index 7e43ca7..0000000 --- a/snippets/c++-mode/section +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: lxsameer -# name: C++-mode section -# key: sec -# -- -// ---------------------------------------------------------------------------- -// $0 -// ---------------------------------------------------------------------------- diff --git a/snippets/org-mode/align b/snippets/org-mode/align deleted file mode 100644 index 20c4416..0000000 --- a/snippets/org-mode/align +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: lxsameer -# name: Latex begin block -# key: al* -# -- -\begin{align*} -$0 -\end{align*} diff --git a/snippets/org-mode/begin b/snippets/org-mode/begin deleted file mode 100644 index 064fc99..0000000 --- a/snippets/org-mode/begin +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: lxsameer -# name: Latex begin block -# key: begin -# -- -\begin{$1} -$0 -\end{$1} \ No newline at end of file diff --git a/snippets/org-mode/block b/snippets/org-mode/block deleted file mode 100644 index ae8f54e..0000000 --- a/snippets/org-mode/block +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: lxsameer -# name: Latex begin block -# key: block -# -- -#+BEGIN_{$1} - $0 -#+END_{$1} \ No newline at end of file diff --git a/snippets/org-mode/equation b/snippets/org-mode/equation deleted file mode 100644 index b14a93e..0000000 --- a/snippets/org-mode/equation +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: lxsameer -# name: Latex equation* block -# key: eq* -# -- -\begin{equation*} -$0 -\end{equation*} diff --git a/snippets/org-mode/frac b/snippets/org-mode/frac deleted file mode 100644 index 8cbd2bc..0000000 --- a/snippets/org-mode/frac +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# contributor: lxsameer -# name: Latex frac -# key: fr -# -- -\frac{$1}{$2} $0 diff --git a/snippets/org-mode/infobox b/snippets/org-mode/infobox deleted file mode 100644 index 6ca253c..0000000 --- a/snippets/org-mode/infobox +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# contributor: lxsameer -# name: Latex Definition box -# key: def -# -- -#+attr_latex: :options {Definition} -#+BEGIN_infobox -$0 -#+END_infobox \ No newline at end of file diff --git a/snippets/org-mode/prod b/snippets/org-mode/prod deleted file mode 100644 index 63f061b..0000000 --- a/snippets/org-mode/prod +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# contributor: lxsameer -# name: Latex \prod -# key: prod -# -- -\prod ^{$1} _{$2} $0 \ No newline at end of file diff --git a/snippets/org-mode/sum b/snippets/org-mode/sum deleted file mode 100644 index fe64b7a..0000000 --- a/snippets/org-mode/sum +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# contributor: lxsameer -# name: Latex \sum -# key: sum -# -- -\sum ^{$1} _{$2} $0 \ No newline at end of file diff --git a/snippets/org-mode/tw b/snippets/org-mode/tw deleted file mode 100644 index 351c5b5..0000000 --- a/snippets/org-mode/tw +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# contributor: lxsameer -# 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 \ No newline at end of file