ADD MORE YASNIPPETS FOR YA BOI!

This commit is contained in:
foo-dogsquared 2020-06-03 23:35:20 +08:00
parent 6ba3713bca
commit 798db7f97d
10 changed files with 46 additions and 9 deletions

View File

@ -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

View File

@ -3,4 +3,4 @@
# key: eg # key: eg
# condition: t # condition: t
# -- # --
(e.g., $1) (e.g., $1) $0

View File

@ -2,4 +2,4 @@
# name: Em dash # name: Em dash
# key: em # key: em
# -- # --
$0

View File

@ -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

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: Org-Mode appendix block
# key: appendix
# --
:PROPERTIES:
:APPENDIX: t
:END:

View File

@ -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

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Org-Mode local property
# key: lprop
# --
:${1:<KEY>}: ${2:<VALUE>}

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: Org-Mode local property block
# key: lpropblock
# --
:PROPERTIES:
$1
:END:

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Org-Mode global property
# key: prop
# --
#+${1:<KEY>}: ${2:<VALUES>}

View 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