summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-yas.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/init-yas.el b/lisp/init-yas.el
index 04e0681..33a52f8 100644
--- a/lisp/init-yas.el
+++ b/lisp/init-yas.el
@@ -3,6 +3,12 @@
(setq yas-fallback-behavior nil)
+(defvar km/personal-snippets
+ (file-name-as-directory (expand-file-name "psnippets" user-emacs-directory)))
+
+(when (file-exists-p km/personal-snippets)
+ (add-to-list 'yas-snippet-dirs km/personal-snippets))
+
(define-key yas-minor-mode-map (kbd "C-c i") 'yas-expand)
;; Remove commands with 'C-c &' prefix, which conflicts with
;; `org-mark-ring-goto' binding'