26 lines
580 B
EmacsLisp
26 lines
580 B
EmacsLisp
;;; feature-snippets.el --- Brief description -*- lexical-binding: t; -*-
|
|
;;; Commentary:
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(require 'feature-pkg)
|
|
|
|
(pkg/require 'yasnippet)
|
|
(pkg/require 'yasnippet-snippets)
|
|
|
|
(setq yas-snippet-dirs '("~/.config/emacs/snippets/"))
|
|
(yas-global-mode 1)
|
|
|
|
(global-set-key (kbd "C-x y i") #'yas-insert-snippet)
|
|
(global-set-key (kbd "C-x y n") #'yas-new-snippet)
|
|
(global-set-key (kbd "C-x y v") #'yas-visit-snippet-file)
|
|
|
|
(add-hook 'prog-mode-hook #'yas-minor-mode)
|
|
(add-hook 'org-mode-hook #'yas-minor-mode)
|
|
|
|
(provide 'feature-snippets)
|
|
|
|
;;; feature-snippets.el ends here.
|