minor cleanup, yas snippets

This commit is contained in:
caleb 2025-06-03 21:22:45 -07:00
parent a9e090ccbd
commit ee2ae7559d
6 changed files with 45 additions and 6 deletions

5
.gitignore vendored
View File

@ -5,3 +5,8 @@
/elpa/
/projectile-bookmarks.eld
/transient/
/.cache/
/.dap-breakpoints
/projects
/recentf
/tramp

10
init.el
View File

@ -6,17 +6,15 @@
(unless package-archive-contents
(package-refresh-contents))
;; Basic UI cleanup
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
;; Save customization info elsewhere
(setq custom-file "~/.config/emacs-custom.el")
(when (file-exists-p custom-file)
(load custom-file))
;; Some Global Settings
;; Global Settings
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(show-paren-mode 1)
(global-hl-line-mode t)
(global-auto-revert-mode t)

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: dot
# key: dot_
# --
#+BEGIN_SRC dot :file ${1:file} :cmdline -Kdot -Tpng
digraph ${2:name} {
$0
}
#+END_SRC

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: org-drill-math
# key: math_
# --
#+begin_src latex :results file raw :file $1.png
\[
$0
\]
#+END_SRC

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: org-drill-definition-region
# key: odd
# binding: C-c d d
# expand-env ((yas-indent-line 'fixed))
# --
`(make-string (1+ (org-current-level)) ?*)` Definition :drill:
$1
`(make-string (+ 2 (org-current-level)) ?*)` Answer
`yas-selected-text`

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: org-drill-statement-region
# key: ods
# binding: C-c d s
# expand-env ((yas-indent-line 'fixed))
# --
`(make-string (1+ (org-current-level)) ?*)` ${1:Statement} :drill:
`yas-selected-text`