Move emacs-snippets -> doom-snippets
The repo was renamed upstream.
This commit is contained in:
parent
de85f67b7c
commit
62af55dad0
10 changed files with 31 additions and 35 deletions
|
@ -19,7 +19,6 @@ private module.
|
||||||
* Table of Contents :TOC:
|
* Table of Contents :TOC:
|
||||||
- [[#install][Install]]
|
- [[#install][Install]]
|
||||||
- [[#configuration][Configuration]]
|
- [[#configuration][Configuration]]
|
||||||
- [[#using-another-snippets-library][Using another snippets library]]
|
|
||||||
- [[#im-not-an-evil-user][I'm not an evil user...]]
|
- [[#im-not-an-evil-user][I'm not an evil user...]]
|
||||||
- [[#appendix][Appendix]]
|
- [[#appendix][Appendix]]
|
||||||
- [[#commands][Commands]]
|
- [[#commands][Commands]]
|
||||||
|
@ -29,19 +28,6 @@ private module.
|
||||||
This module has no external dependencies.
|
This module has no external dependencies.
|
||||||
|
|
||||||
* Configuration
|
* Configuration
|
||||||
** Using another snippets library
|
|
||||||
Don't want to use provided one? Then add this to your private module,
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
;; in config/$USER/packages.el
|
|
||||||
(package! emacs-snippets :ignore t)
|
|
||||||
|
|
||||||
;; in config/$USER/config.el
|
|
||||||
(def-package-hook! emacs-snippets :disabled t)
|
|
||||||
(after! yasnippet
|
|
||||||
(push "~/path/to/my/private/snippets" yas-snippet-dirs))
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** I'm not an evil user...
|
** I'm not an evil user...
|
||||||
That's fine. All evil configuration is ignored if =:editor evil= is disabled.
|
That's fine. All evil configuration is ignored if =:editor evil= is disabled.
|
||||||
|
|
||||||
|
|
|
@ -4,14 +4,15 @@
|
||||||
#+STARTUP: inlineimages
|
#+STARTUP: inlineimages
|
||||||
|
|
||||||
* Table of Contents :TOC:
|
* Table of Contents :TOC:
|
||||||
- [[Description][Description]]
|
- [[#description][Description]]
|
||||||
- [[Module Flags][Module Flags]]
|
- [[#module-flags][Module Flags]]
|
||||||
- [[Plugins][Plugins]]
|
- [[#plugins][Plugins]]
|
||||||
- [[Hacks][Hacks]]
|
- [[#hacks][Hacks]]
|
||||||
- [[Prerequisites][Prerequisites]]
|
- [[#prerequisites][Prerequisites]]
|
||||||
- [[Features][Features]]
|
- [[#features][Features]]
|
||||||
- [[Configuration][Configuration]]
|
- [[#configuration][Configuration]]
|
||||||
- [[Troubleshooting][Troubleshooting]]
|
- [[#disabling-the-built-in-snippets][Disabling the built-in snippets]]
|
||||||
|
- [[#troubleshooting][Troubleshooting]]
|
||||||
|
|
||||||
* Description
|
* Description
|
||||||
This module adds snippets to Emacs, powered by yasnippet.
|
This module adds snippets to Emacs, powered by yasnippet.
|
||||||
|
@ -22,7 +23,7 @@ This module exposes no flags.
|
||||||
** Plugins
|
** Plugins
|
||||||
+ [[https://github.com/joaotavora/yasnippet][yasnippet]]
|
+ [[https://github.com/joaotavora/yasnippet][yasnippet]]
|
||||||
+ [[https://github.com/abo-abo/auto-yasnippet][auto-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
|
** TODO Hacks
|
||||||
|
|
||||||
|
@ -31,6 +32,15 @@ This module has no external dependencies.
|
||||||
|
|
||||||
* TODO Features
|
* 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
|
* TODO Troubleshooting
|
||||||
|
|
|
@ -211,8 +211,8 @@ You will be prompted for a snippet to alias."
|
||||||
(list
|
(list
|
||||||
(+snippet--completing-read-uuid "Select snippet to alias: "
|
(+snippet--completing-read-uuid "Select snippet to alias: "
|
||||||
current-prefix-arg)))
|
current-prefix-arg)))
|
||||||
(unless (require 'emacs-snippets nil t)
|
(unless (require 'doom-snippets nil t)
|
||||||
(user-error "This command requires the `emacs-snippets' library bundled with Doom Emacs"))
|
(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)))
|
(let ((default-directory (expand-file-name (symbol-name major-mode) +snippets-dir)))
|
||||||
(+snippet--ensure-dir default-directory)
|
(+snippet--ensure-dir default-directory)
|
||||||
(with-current-buffer (switch-to-buffer "untitled-snippet")
|
(with-current-buffer (switch-to-buffer "untitled-snippet")
|
||||||
|
|
|
@ -68,5 +68,5 @@
|
||||||
|
|
||||||
|
|
||||||
;; default snippets library
|
;; default snippets library
|
||||||
(def-package! emacs-snippets
|
(def-package! doom-snippets
|
||||||
:after yasnippet)
|
:after yasnippet)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
(package! yasnippet)
|
(package! yasnippet)
|
||||||
(package! auto-yasnippet)
|
(package! auto-yasnippet)
|
||||||
|
|
||||||
(package! emacs-snippets
|
(package! doom-snippets
|
||||||
:recipe (:fetcher github
|
:recipe (:fetcher github
|
||||||
:repo "hlissner/emacs-snippets"
|
:repo "hlissner/doom-snippets"
|
||||||
:files ("*")))
|
:files ("*.el" "snippets")))
|
||||||
|
|
|
@ -24,7 +24,7 @@ This module adds support for the C-family of languages: C, C++, and Objective-C.
|
||||||
+ Syntax-checking (~flycheck-irony~)
|
+ Syntax-checking (~flycheck-irony~)
|
||||||
+ Code navigation (~rtags~)
|
+ Code navigation (~rtags~)
|
||||||
+ File Templates ([[../../editor/file-templates/templates/c-mode][c-mode]], [[../../editor/file-templates/templates/c++-mode][c++-mode]])
|
+ File Templates ([[../../editor/file-templates/templates/c-mode][c-mode]], [[../../editor/file-templates/templates/c++-mode][c++-mode]])
|
||||||
+ Snippets ([[https://github.com/hlissner/emacs-snippets/tree/master/cc-mode][cc-mode]], [[https://github.com/hlissner/emacs-snippets/tree/master/c-mode][c-mode]], [[https://github.com/hlissner/emacs-snippets/tree/master/c++-mode][c++-mode]])
|
+ Snippets ([[https://github.com/hlissner/doom-snippets/tree/master/cc-mode][cc-mode]], [[https://github.com/hlissner/doom-snippets/tree/master/c-mode][c-mode]], [[https://github.com/hlissner/doom-snippets/tree/master/c++-mode][c++-mode]])
|
||||||
+ Several improvements to C++11 indentation and syntax highlighting.
|
+ Several improvements to C++11 indentation and syntax highlighting.
|
||||||
|
|
||||||
** Module Flags
|
** Module Flags
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
This module adds [[https://coq.inria.fr][coq]] support, powered by [[https://proofgeneral.github.io][Proof General]].
|
This module adds [[https://coq.inria.fr][coq]] support, powered by [[https://proofgeneral.github.io][Proof General]].
|
||||||
|
|
||||||
+ Code completion ([[https://github.com/cpitclaudel/company-coq][company-coq]])
|
+ Code completion ([[https://github.com/cpitclaudel/company-coq][company-coq]])
|
||||||
+ [[https://github.com/hlissner/emacs-snippets/tree/master/coq-mode][Snippets]]
|
+ [[https://github.com/hlissner/doom-snippets/tree/master/coq-mode][Snippets]]
|
||||||
|
|
|
@ -25,7 +25,7 @@ This module adds [[https://golang.org][Go]] support.
|
||||||
+ Auto-formatting on save (~gofmt~)
|
+ Auto-formatting on save (~gofmt~)
|
||||||
+ Code navigation & refactoring (~go-guru~)
|
+ Code navigation & refactoring (~go-guru~)
|
||||||
+ [[../../editor/file-templates/templates/go-mode][File templates]]
|
+ [[../../editor/file-templates/templates/go-mode][File templates]]
|
||||||
+ [[https://github.com/hlissner/emacs-snippets/tree/master/go-mode][Snippets]]
|
+ [[https://github.com/hlissner/doom-snippets/tree/master/go-mode][Snippets]]
|
||||||
|
|
||||||
** Module Flags
|
** Module Flags
|
||||||
This module provides no flags.
|
This module provides no flags.
|
||||||
|
|
|
@ -27,7 +27,7 @@ or [[https://github.com/emacs-lsp/lsp-haskell][LSP]].
|
||||||
+ REPL (~ghci~)
|
+ REPL (~ghci~)
|
||||||
+ Syntax-checking (~flycheck~)
|
+ Syntax-checking (~flycheck~)
|
||||||
+ Code navigation (~dante~)
|
+ Code navigation (~dante~)
|
||||||
+ [[https://github.com/hlissner/emacs-snippets/tree/master/haskell-mode][Snippets]]
|
+ [[https://github.com/hlissner/doom-snippets/tree/master/haskell-mode][Snippets]]
|
||||||
|
|
||||||
** External resources
|
** External resources
|
||||||
Here are a few resources I've found indespensible in my Haskell adventures:
|
Here are a few resources I've found indespensible in my Haskell adventures:
|
||||||
|
|
|
@ -9,7 +9,7 @@ This module adds support for PHP 5.3+ (including PHP7).
|
||||||
+ Unit-test commands (~phpunit~)
|
+ Unit-test commands (~phpunit~)
|
||||||
+ Support for ~laravel~ and ~composer~ projects (with project-specific snippets)
|
+ Support for ~laravel~ and ~composer~ projects (with project-specific snippets)
|
||||||
+ [[../../editor/file-templates/templates/php-mode][File templates]]
|
+ [[../../editor/file-templates/templates/php-mode][File templates]]
|
||||||
+ [[https://github.com/hlissner/emacs-snippets/tree/master/php-mode][Snippets]]
|
+ [[https://github.com/hlissner/doom-snippets/tree/master/php-mode][Snippets]]
|
||||||
|
|
||||||
#+begin_quote
|
#+begin_quote
|
||||||
PHP was the first programming language I got paid to code in, back in the Cretaceous period (2003). My sincerest apologies go out to all the programmers who inherited my earliest PHP work. I know you're out there, writhing in your straitjackets.
|
PHP was the first programming language I got paid to code in, back in the Cretaceous period (2003). My sincerest apologies go out to all the programmers who inherited my earliest PHP work. I know you're out there, writhing in your straitjackets.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue