mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-31 04:57:57 +00:00
ADD MORE YASNIPPETS FOR YA BOI!
This commit is contained in:
parent
6ba3713bca
commit
798db7f97d
@ -67,10 +67,6 @@
|
|||||||
(add-to-list 'safe-local-variable-values
|
(add-to-list 'safe-local-variable-values
|
||||||
'(TeX-command-extra-options . "-shell-escape")))
|
'(TeX-command-extra-options . "-shell-escape")))
|
||||||
|
|
||||||
; Disable indentation in org-mode (it's very spacey in my opinion).
|
|
||||||
(add-hook! org-mode
|
|
||||||
(setq org-indent-mode nil))
|
|
||||||
|
|
||||||
;;(use-package! ewal
|
;;(use-package! ewal
|
||||||
;; :init (setq ewal-json-file "~/.cache/wal/colors.json"
|
;; :init (setq ewal-json-file "~/.cache/wal/colors.json"
|
||||||
;; ewal-use-built-in-always-p nil
|
;; ewal-use-built-in-always-p nil
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
# key: eg
|
# key: eg
|
||||||
# condition: t
|
# condition: t
|
||||||
# --
|
# --
|
||||||
(e.g., $1)
|
(e.g., $1) $0
|
@ -2,4 +2,4 @@
|
|||||||
# name: Em dash
|
# name: Em dash
|
||||||
# key: em
|
# key: em
|
||||||
# --
|
# --
|
||||||
—
|
— $0
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
# name: Shorthand for i.e. in parenthesis
|
# name: Shorthand for i.e. in parenthesis
|
||||||
# key: ie
|
# key: ie
|
||||||
# --
|
# --
|
||||||
(i.e., $1)
|
(i.e., $1) $0
|
7
emacs/snippets/org-mode/appendix
Normal file
7
emacs/snippets/org-mode/appendix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Org-Mode appendix block
|
||||||
|
# key: appendix
|
||||||
|
# --
|
||||||
|
:PROPERTIES:
|
||||||
|
:APPENDIX: t
|
||||||
|
:END:
|
@ -2,4 +2,12 @@
|
|||||||
# name: Org-Mode header
|
# name: Org-Mode header
|
||||||
# key: header
|
# key: header
|
||||||
# --
|
# --
|
||||||
`(make-string (read-number "WHAT IS THE NUMBER?: ") ?*)`
|
`(let* ((headerlevel (cl-gcd (read-number "What is the header level?: ")))
|
||||||
|
(str ""))
|
||||||
|
(if (= headerlevel 1)
|
||||||
|
(setq str (concat str (s-repeat 4 "\n")))
|
||||||
|
(setq str (concat str (s-repeat 2 "\n"))))
|
||||||
|
(setq str (concat str (make-string headerlevel ?*)))
|
||||||
|
str)` ${1:<HEADER>}
|
||||||
|
|
||||||
|
$0
|
||||||
|
5
emacs/snippets/org-mode/local-property
Normal file
5
emacs/snippets/org-mode/local-property
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Org-Mode local property
|
||||||
|
# key: lprop
|
||||||
|
# --
|
||||||
|
:${1:<KEY>}: ${2:<VALUE>}
|
7
emacs/snippets/org-mode/local-property-block
Normal file
7
emacs/snippets/org-mode/local-property-block
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Org-Mode local property block
|
||||||
|
# key: lpropblock
|
||||||
|
# --
|
||||||
|
:PROPERTIES:
|
||||||
|
$1
|
||||||
|
:END:
|
5
emacs/snippets/org-mode/property
Normal file
5
emacs/snippets/org-mode/property
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Org-Mode global property
|
||||||
|
# key: prop
|
||||||
|
# --
|
||||||
|
#+${1:<KEY>}: ${2:<VALUES>}
|
9
emacs/snippets/org-mode/video
Normal file
9
emacs/snippets/org-mode/video
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Org-Mode video block (on HTML, anyways)
|
||||||
|
# key: video
|
||||||
|
# --
|
||||||
|
#+ATTR_HTML: :controls controls
|
||||||
|
#+BEGIN_video
|
||||||
|
#+HTML: <source src="${1:<VIDEO URL>}">
|
||||||
|
Your browser does not support the video tag.
|
||||||
|
#+END_video
|
Loading…
Reference in New Issue
Block a user