yasnippet

This commit is contained in:
2024-10-01 23:45:01 -07:00
parent 3118889f4f
commit 9122a8bfa0
3 changed files with 14 additions and 1 deletions

View File

@@ -3,5 +3,6 @@
!*.org !*.org
!*.el !*.el
!.gitkeep !.gitkeep
!modules !snippets/
!snippets/**
flycheck_init.el flycheck_init.el

View File

@@ -406,6 +406,11 @@
(add-hook 'completion-at-point-functions #'cape-dabbrev) (add-hook 'completion-at-point-functions #'cape-dabbrev)
(add-hook 'completion-at-point-functions #'cape-file) (add-hook 'completion-at-point-functions #'cape-file)
(add-hook 'completion-at-point-functions #'cape-elisp-block)) (add-hook 'completion-at-point-functions #'cape-elisp-block))
;;;; yasnippet
(use-package yasnippet
:ensure t
:init
(yas-global-mode 1))
;;; Appearance ;;; Appearance
;;;; Theme ;;;; Theme

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: Org Src Block
# key: ,src
# --
#+BEGIN_SRC $1
$2
#+END_SRC