forked from FG42/FG42
Remove yasnippet completely
This commit is contained in:
parent
4b6ca4a90e
commit
cd6cecdbbb
|
@ -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
|
||||
|
||||
|
|
|
@ -39,8 +39,6 @@ let
|
|||
exec-path-from-shell
|
||||
avy
|
||||
ace-window
|
||||
yasnippet
|
||||
yasnippet-snippets
|
||||
flycheck
|
||||
org
|
||||
org-super-agenda
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: lxsameer <lxsameer@gnu.org>
|
||||
# name: C++-mode section
|
||||
# key: sec
|
||||
# --
|
||||
// ----------------------------------------------------------------------------
|
||||
// $0
|
||||
// ----------------------------------------------------------------------------
|
|
@ -1,8 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: lxsameer <lxsameer@gnu.org>
|
||||
# name: Latex begin block
|
||||
# key: al*
|
||||
# --
|
||||
\begin{align*}
|
||||
$0
|
||||
\end{align*}
|
|
@ -1,8 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: lxsameer <lxsameer@gnu.org>
|
||||
# name: Latex begin block
|
||||
# key: begin
|
||||
# --
|
||||
\begin{$1}
|
||||
$0
|
||||
\end{$1}
|
|
@ -1,8 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: lxsameer <lxsameer@gnu.org>
|
||||
# name: Latex begin block
|
||||
# key: block
|
||||
# --
|
||||
#+BEGIN_{$1}
|
||||
$0
|
||||
#+END_{$1}
|
|
@ -1,8 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: lxsameer <lxsameer@gnu.org>
|
||||
# name: Latex equation* block
|
||||
# key: eq*
|
||||
# --
|
||||
\begin{equation*}
|
||||
$0
|
||||
\end{equation*}
|
|
@ -1,6 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: lxsameer <lxsameer@gnu.org>
|
||||
# name: Latex frac
|
||||
# key: fr
|
||||
# --
|
||||
\frac{$1}{$2} $0
|
|
@ -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
|
|
@ -1,6 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: lxsameer <lxsameer@gnu.org>
|
||||
# name: Latex \prod
|
||||
# key: prod
|
||||
# --
|
||||
\prod ^{$1} _{$2} $0
|
|
@ -1,6 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: lxsameer <lxsameer@gnu.org>
|
||||
# name: Latex \sum
|
||||
# key: sum
|
||||
# --
|
||||
\sum ^{$1} _{$2} $0
|
|
@ -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
|
Loading…
Reference in New Issue