1

Add doom config to repo

This commit is contained in:
2022-07-01 16:28:22 +02:00
parent 0fa8ff3bba
commit aa6a7fad3b
27 changed files with 1347 additions and 0 deletions

View File

@ -0,0 +1,19 @@
;;; Compiled snippets and support files for `latex-mode'
;;; Snippet definitions:
;;;
(yas-define-snippets 'latex-mode
'(("theorem" "\\begin{theorem}{$1}\n $0\n\\end{theorem}" "theorem" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/theorem.yasnippet" nil nil)
("sum" "\\sum\\limits${1:$(when (> (length yas-text) 0) \"_\")\n}${1:$(when (> (length yas-text) 1) \"{\")\n}${1:i=0}${1:$(when (> (length yas-text) 1) \"}\")\n}${2:$(when (> (length yas-text) 0) \"^\")\n}${2:$(when (> (length yas-text) 1) \"{\")\n}${2:n}${2:$(when (> (length yas-text) 1) \"}\")} $0" "sum" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/sum.yasnippet" nil nil)
("subfile" "\\documentclass[main.tex]{subfiles}\n\n\\begin{document}\n\n\\section{$1}\n\n$0\n\n\\end{document}" "subfile" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/subfile.yasnippet" nil nil)
("remark" "\\begin{remark}{$1}\n $0\n\\end{remark}" "remark" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/remark.yasnippet" nil nil)
("proof" "\\begin{proof}{$1}\n $0\n\\end{proof}\n" "proof" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/proof.yasnippet" nil nil)
("mainfile" "\\input{../pre.tex}\n\n\\begin{document}\n\n\\title{$1} \\subtitle{$2} \\author{Christoph Urlacher} \\date{\\today}\n\n\\maketitle\n\\newpage\n\\tableofcontents\n\\newpage\n\n$0\n\n\\end{document}" "main file" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/main_file.yasnippet" nil nil)
("lemma" "\\begin{lemma}{$1}\n $0\n\\end{lemma}\n" "lemma" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/lemma.yasnippet" nil nil)
("int" "\\int\\limits${1:$(when (> (length yas-text) 0) \"_\")\n}${1:$(when (> (length yas-text) 1) \"{\")\n}${1:left}${1:$(when (> (length yas-text) 1) \"}\")\n}${2:$(when (> (length yas-text) 0) \"^\")\n}${2:$(when (> (length yas-text) 1) \"{\")\n}${2:right}${2:$(when (> (length yas-text) 1) \"}\")} $0\n" "int" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/int.yasnippet" nil nil)
("im" "\\\\( $1 \\\\)$0" "inline math" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/inline_math.yasnippet" nil nil)
("dm" "\\\\[ $1 \\\\]$0" "display math" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/display_math.yasnippet" nil nil)
("definition" "\\begin{definition}{$1}\n $0\n\\end{definition}" "definition" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/definition.yasnippet" nil nil)
("corollary" "\\begin{corollary}{$1}\n $0\n\\end{corollary}\n" "corollary" nil nil nil "/home/christoph/.config/doom/snippets/latex-mode/corollary.yasnippet" nil nil)))
;;; Do not edit! File generated at Wed Apr 13 20:49:27 2022

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: corollary
# key: corollary
# --
\begin{corollary}{$1}
$0
\end{corollary}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: definition
# key: definition
# --
\begin{definition}{$1}
$0
\end{definition}

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: display math
# key: dm
# --
\\[ $1 \\]$0

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: inline math
# key: im
# --
\\( $1 \\)$0

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: int
# key: int
# --
\int\limits${1:$(when (> (length yas-text) 0) "_")
}${1:$(when (> (length yas-text) 1) "{")
}${1:left}${1:$(when (> (length yas-text) 1) "}")
}${2:$(when (> (length yas-text) 0) "^")
}${2:$(when (> (length yas-text) 1) "{")
}${2:right}${2:$(when (> (length yas-text) 1) "}")} $0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: lemma
# key: lemma
# --
\begin{lemma}{$1}
$0
\end{lemma}

View File

@ -0,0 +1,18 @@
# -*- mode: snippet -*-
# name: main file
# key: mainfile
# --
\input{../pre.tex}
\begin{document}
\title{$1} \subtitle{$2} \author{Christoph Urlacher} \date{\today}
\maketitle
\newpage
\tableofcontents
\newpage
$0
\end{document}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: proof
# key: proof
# --
\begin{proof}{$1}
$0
\end{proof}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: remark
# key: remark
# --
\begin{remark}{$1}
$0
\end{remark}

View File

@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# name: subfile
# key: subfile
# --
\documentclass[main.tex]{subfiles}
\begin{document}
\section{$1}
$0
\end{document}

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: sum
# key: sum
# --
\sum\limits${1:$(when (> (length yas-text) 0) "_")
}${1:$(when (> (length yas-text) 1) "{")
}${1:i=0}${1:$(when (> (length yas-text) 1) "}")
}${2:$(when (> (length yas-text) 0) "^")
}${2:$(when (> (length yas-text) 1) "{")
}${2:n}${2:$(when (> (length yas-text) 1) "}")} $0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: theorem
# key: theorem
# --
\begin{theorem}{$1}
$0
\end{theorem}

View File

@ -0,0 +1,18 @@
;;; Compiled snippets and support files for `org-mode'
;;; Snippet definitions:
;;;
(yas-define-snippets 'org-mode
'(("cdot" "·" "multiplication sign" nil nil nil "/home/christoph/.config/doom/snippets/org-mode/multiplication_sign.yasnippet" nil nil)
("im" "\\\\( $0 \\\\)" "inline math" nil nil
((yas-after-exit-snippet-hook #'org-edit-special))
"/home/christoph/.config/doom/snippets/org-mode/inline_math.yasnippet" nil nil)
("latexp" "#+OPTIONS: tags:nil date:nil num:nil toc:nil tags:nil\n#+TAGS: $0\n" "latex export preamble" nil nil nil "/home/christoph/.config/doom/snippets/org-mode/export.yasnippet" nil nil)
("lrarr" "" "equivalent sign" nil nil nil "/home/christoph/.config/doom/snippets/org-mode/equivalent_sign.yasnippet" nil nil)
("begin" "\\\\begin{$1}\n $0\n\\\\end{$1}" "new environment" nil nil nil "/home/christoph/.config/doom/snippets/org-mode/environment.yasnippet" nil nil)
("dm" "\\\\[ $1 \\\\]$0" "display math" nil nil nil "/home/christoph/.config/doom/snippets/org-mode/display_math.yasnippet" nil nil)
("dfa" "#+BEGIN_SRC dot :file $1.png :cmdline -Kdot -Tpng\ndigraph {\n rankdir = LR;\n splines = true;\n node [shape = doublecircle]; Z1;\n node [shape = circle];\n Z0 -> Z1 [label = \"\"];\n $0\n}\n#+END_SRC\n" "graphviz deterministic finite automaton" nil nil nil "/home/christoph/.config/doom/snippets/org-mode/dfa.yasnippet" nil nil)
("delta" "Δ" "Delta" nil nil nil "/home/christoph/.config/doom/snippets/org-mode/big_delta.yasnippet" nil nil)
("srcR" "#+begin_src R :session *R* :tangle yes :exports both\n\n#+end_src\n" "R source block" nil nil nil "/home/christoph/.config/doom/snippets/org-mode/R_source_block" nil nil)))
;;; Do not edit! File generated at Wed Apr 13 20:49:27 2022

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: R source block
# key: srcR
# --
#+begin_src R :session *R* :tangle yes :exports both
#+end_src

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Delta
# key: delta
# --
Δ

View File

@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# name: graphviz deterministic finite automaton
# key: dfa
# --
#+BEGIN_SRC dot :file $1.png :cmdline -Kdot -Tpng
digraph {
rankdir = LR;
splines = true;
node [shape = doublecircle]; Z1;
node [shape = circle];
Z0 -> Z1 [label = ""];
$0
}
#+END_SRC

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: display math
# key: dm
# --
\\[ $1 \\]$0

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: new environment
# key: begin
# --
\\begin{$1}
$0
\\end{$1}

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: equivalent sign
# key: lrarr
# --

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: latex export preamble
# key: latexp
# --
#+OPTIONS: tags:nil date:nil num:nil toc:nil tags:nil
#+TAGS: $0

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: inline math
# key: im
# expand-env: ((yas-after-exit-snippet-hook #'org-edit-special))
# --
\\( $0 \\)

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: multiplication sign
# key: cdot
# --
·