Skip to content

Commit e96b116

Browse files
M1ndolpil
authored andcommitted
Adding Org Mode
Adding Org-Mode snippets because they are missing.
1 parent 6173350 commit e96b116

File tree

1 file changed

+125
-0
lines changed

1 file changed

+125
-0
lines changed

snippets/org.snippets

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Org Mode Snippets Imported from (https://github.com/doomemacs/snippets/)
2+
# Imported by ybenel (github.com/m1ndo)
3+
4+
# Begin
5+
snippet begin
6+
#+begin_${1:type} ${2:options}
7+
$0
8+
#+end_$1
9+
# Begin Center
10+
snippet <C
11+
#+begin_center
12+
$0
13+
#+end_center
14+
# Begin Comment
15+
snippet <c
16+
#+begin_comment
17+
$0
18+
#+end_comment
19+
# Begin Example
20+
snippet <e
21+
#+begin_example
22+
$0
23+
#+end_example
24+
# Begin Export Ascii
25+
snippet <a
26+
#+begin_export ascii
27+
$0
28+
#+end_export
29+
# Begin export html
30+
snippet <h
31+
#+begin_export html
32+
$0
33+
#+end_export
34+
# Begin export Latex
35+
snippet <l
36+
#+begin_export latex
37+
$0
38+
#+end_export
39+
# dot
40+
snippet dot
41+
#+begin_src dot :file ${1:file}.${2:svg} :results file graphics
42+
$0
43+
#+end_src
44+
# elisp
45+
snippet elisp
46+
#+begin_src emacs-lisp :tangle yes
47+
$0
48+
#+end_src
49+
# Entry
50+
snippet entry
51+
#+begin_html
52+
---
53+
layout: ${1:default}
54+
title: ${2:title}
55+
---
56+
#+end_html
57+
$0
58+
# Begin example
59+
snippet ex
60+
#+begin_example
61+
$0
62+
#+end_example
63+
# Begin export
64+
snippet export
65+
#+begin_export ${1:type}
66+
$0
67+
#+end_export
68+
# Figure
69+
snippet fig
70+
#+caption: ${1:caption}
71+
#+attr_latex: ${2:scale=0.75}
72+
#+name: fig-${3:label}
73+
# Org Header
74+
snippet head
75+
#+title: ${1:untitled document}
76+
#+author: ${2:`user-full-name`}
77+
#+email: ${3:`user-mail-address`}
78+
# Image
79+
snippet img
80+
#+attr_html: :alt $2 :align ${3:left} :class img
81+
[[${1:src}]${4:[${5:title}]}]
82+
$0
83+
# Inline
84+
snippet inl
85+
src_${1:language}${2:[${3::exports code}]}{${4:code}}
86+
# Inline source
87+
snippet srci
88+
src_${1:language}[${2:header}]{${0:body}}
89+
# Jupyter
90+
snippet jupyter
91+
#+begin_src jupyter-${1:$$(yas-choose-value '("python" "julia" "R"))}${2: :session $3}${4: :async yes}
92+
$0
93+
#+end_src
94+
# Matrix (latex)
95+
snippet matrix
96+
\left \(
97+
\begin{array}{${1:ccc}}
98+
${2:v1 & v2} \\
99+
$0
100+
\end{array}
101+
\right \)
102+
# Name
103+
snippet name
104+
#+name: $0
105+
# Quote
106+
snippet quote
107+
#+begin_quote
108+
$0
109+
#+end_quote
110+
# Source
111+
snippet src
112+
#+begin_src $1
113+
$0
114+
#+end_src
115+
# Todo
116+
snippet todo
117+
TODO ${1:task description}
118+
# Verse
119+
snippet verse
120+
#+begin_verse
121+
$0
122+
#+end_verse
123+
# Atrribute Width
124+
snippet #+attr_html:width
125+
#+attr_html: :width ${1:500px}

0 commit comments

Comments
 (0)