diff --git a/emacs/config.el b/emacs/config.el index ffaf084..a266155 100644 --- a/emacs/config.el +++ b/emacs/config.el @@ -67,10 +67,6 @@ (add-to-list 'safe-local-variable-values '(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 ;; :init (setq ewal-json-file "~/.cache/wal/colors.json" ;; ewal-use-built-in-always-p nil diff --git a/emacs/snippets/fundamental-mode/eg b/emacs/snippets/fundamental-mode/eg index 5ea94f1..9927cdb 100644 --- a/emacs/snippets/fundamental-mode/eg +++ b/emacs/snippets/fundamental-mode/eg @@ -3,4 +3,4 @@ # key: eg # condition: t # -- -(e.g., $1) \ No newline at end of file +(e.g., $1) $0 \ No newline at end of file diff --git a/emacs/snippets/fundamental-mode/em b/emacs/snippets/fundamental-mode/em index 0f93721..25c5977 100644 --- a/emacs/snippets/fundamental-mode/em +++ b/emacs/snippets/fundamental-mode/em @@ -2,4 +2,4 @@ # name: Em dash # key: em # -- -— +— $0 diff --git a/emacs/snippets/fundamental-mode/ie b/emacs/snippets/fundamental-mode/ie index 0a91bc7..d12c9e5 100644 --- a/emacs/snippets/fundamental-mode/ie +++ b/emacs/snippets/fundamental-mode/ie @@ -2,4 +2,4 @@ # name: Shorthand for i.e. in parenthesis # key: ie # -- -(i.e., $1) \ No newline at end of file +(i.e., $1) $0 \ No newline at end of file diff --git a/emacs/snippets/org-mode/appendix b/emacs/snippets/org-mode/appendix new file mode 100644 index 0000000..2e6b5d2 --- /dev/null +++ b/emacs/snippets/org-mode/appendix @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Org-Mode appendix block +# key: appendix +# -- +:PROPERTIES: +:APPENDIX: t +:END: diff --git a/emacs/snippets/org-mode/header b/emacs/snippets/org-mode/header index 4f19dbd..3d8678d 100644 --- a/emacs/snippets/org-mode/header +++ b/emacs/snippets/org-mode/header @@ -1,5 +1,13 @@ # -*- mode: snippet -*- # name: Org-Mode header -# key: header +# key: header # -- -`(make-string (read-number "WHAT IS THE NUMBER?: ") ?*)` \ No newline at end of file +`(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:
} + +$0 diff --git a/emacs/snippets/org-mode/local-property b/emacs/snippets/org-mode/local-property new file mode 100644 index 0000000..e6a8a8e --- /dev/null +++ b/emacs/snippets/org-mode/local-property @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: Org-Mode local property +# key: lprop +# -- +:${1:}: ${2:} diff --git a/emacs/snippets/org-mode/local-property-block b/emacs/snippets/org-mode/local-property-block new file mode 100644 index 0000000..5795392 --- /dev/null +++ b/emacs/snippets/org-mode/local-property-block @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Org-Mode local property block +# key: lpropblock +# -- +:PROPERTIES: +$1 +:END: diff --git a/emacs/snippets/org-mode/property b/emacs/snippets/org-mode/property new file mode 100644 index 0000000..e9e6867 --- /dev/null +++ b/emacs/snippets/org-mode/property @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: Org-Mode global property +# key: prop +# -- +#+${1:}: ${2:} diff --git a/emacs/snippets/org-mode/video b/emacs/snippets/org-mode/video new file mode 100644 index 0000000..5364503 --- /dev/null +++ b/emacs/snippets/org-mode/video @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Org-Mode video block (on HTML, anyways) +# key: video +# -- +#+ATTR_HTML: :controls controls +#+BEGIN_video +#+HTML: +Your browser does not support the video tag. +#+END_video