summary refs log tree commit diff
path: root/config/init-snippets.el
blob: 29001971a1cf6bfb8890044e76b93477e5008212 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;;; init-snippets.el --- configure snippets -*- lexical-binding: t -*-
;; Author: Franck Cuny <franck@fcuny.net>

;;; Commentary:

;; Configure snippets

;;; Code:

(use-package yasnippet
  :ensure t
  :hook (after-init . yas-global-mode))

;; Yasnippet Completion At Point Function
(use-package yasnippet-capf
  :ensure t
  :init (add-to-list 'completion-at-point-functions #'yasnippet-capf))

(provide 'init-snippets)

;;; init-snippets.el ends here