Move emacs-snippets -> doom-snippets

The repo was renamed upstream.
This commit is contained in:
Henrik Lissner 2019-07-14 14:43:45 +02:00
parent de85f67b7c
commit 62af55dad0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
10 changed files with 31 additions and 35 deletions

View file

@ -4,14 +4,15 @@
#+STARTUP: inlineimages
* Table of Contents :TOC:
- [[Description][Description]]
- [[Module Flags][Module Flags]]
- [[Plugins][Plugins]]
- [[Hacks][Hacks]]
- [[Prerequisites][Prerequisites]]
- [[Features][Features]]
- [[Configuration][Configuration]]
- [[Troubleshooting][Troubleshooting]]
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#hacks][Hacks]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#configuration][Configuration]]
- [[#disabling-the-built-in-snippets][Disabling the built-in snippets]]
- [[#troubleshooting][Troubleshooting]]
* Description
This module adds snippets to Emacs, powered by yasnippet.
@ -22,7 +23,7 @@ This module exposes no flags.
** Plugins
+ [[https://github.com/joaotavora/yasnippet][yasnippet]]
+ [[https://github.com/abo-abo/auto-yasnippet][auto-yasnippet]]
+ [[https://github.com/hlissner/emacs-snippets][emacs-snippets]]
+ [[https://github.com/hlissner/doom-snippets][doom-snippets]]
** TODO Hacks
@ -31,6 +32,15 @@ This module has no external dependencies.
* TODO Features
* TODO Configuration
* Configuration
** Disabling the built-in snippets
Don't want to use provided one? Then add this to your private module,
#+BEGIN_SRC emacs-lisp
;; in ~/.doom.d/packages.el
(package! doom-snippets :ignore t)
;; If you want to replace it with yasnippet's default snippets
(package! yasnippet-snippets)
#+END_SRC
* TODO Troubleshooting

View file

@ -211,8 +211,8 @@ You will be prompted for a snippet to alias."
(list
(+snippet--completing-read-uuid "Select snippet to alias: "
current-prefix-arg)))
(unless (require 'emacs-snippets nil t)
(user-error "This command requires the `emacs-snippets' library bundled with Doom Emacs"))
(unless (require 'doom-snippets nil t)
(user-error "This command requires the `doom-snippets' library bundled with Doom Emacs"))
(let ((default-directory (expand-file-name (symbol-name major-mode) +snippets-dir)))
(+snippet--ensure-dir default-directory)
(with-current-buffer (switch-to-buffer "untitled-snippet")

View file

@ -68,5 +68,5 @@
;; default snippets library
(def-package! emacs-snippets
(def-package! doom-snippets
:after yasnippet)

View file

@ -4,7 +4,7 @@
(package! yasnippet)
(package! auto-yasnippet)
(package! emacs-snippets
(package! doom-snippets
:recipe (:fetcher github
:repo "hlissner/emacs-snippets"
:files ("*")))
:repo "hlissner/doom-snippets"
:files ("*.el" "snippets")))