summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2024-06-04 18:27:31 -0700
committerChristian Cunningham <cc@localhost>2024-06-04 18:27:31 -0700
commit16ce11d1331197e6e403454196beffc3b03ff487 (patch)
tree9de12c2825e0a1321993f56815db4bdd953e881b
parentc144e18c515eb3fccc4bb45e21977b51c507749a (diff)
Add Yasnippet
-rw-r--r--elchemy-package-yasnippet.el8
-rw-r--r--elchemy-packages.el2
2 files changed, 10 insertions, 0 deletions
diff --git a/elchemy-package-yasnippet.el b/elchemy-package-yasnippet.el
new file mode 100644
index 0000000..831a1bf
--- /dev/null
+++ b/elchemy-package-yasnippet.el
@@ -0,0 +1,8 @@
+(use-package yasnippet
+ :ensure t
+ :init
+ (add-hook 'python-ts-mode-hook #'yas-minor-mode)
+ :config
+ (setq yas-snippet-dirs '("~/.elchemy/snippets/")))
+
+(provide 'elchemy-package-yasnippet)
diff --git a/elchemy-packages.el b/elchemy-packages.el
index 8a6b0c1..15cfc34 100644
--- a/elchemy-packages.el
+++ b/elchemy-packages.el
@@ -24,6 +24,8 @@
show-parent-when-point-in-periphery t))
;; Ido Completions
(require 'elchemy-package-ido)
+;; Snippets
+(require 'elchemy-package-yasnippet)
;; HTML Highlighting
(use-package htmlize
:ensure t)