-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yasnippet-snippets loading temporary fix for AndreaCrotti/yasnippet-s…
- Loading branch information
Showing
1 changed file
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
;; ~/emacs.d/JCyasnippet.el -*- mode: emacs-lisp-*- | ||
|
||
(use-package yasnippet) ;; not yasnippet-bundle | ||
(yas-global-mode 1) | ||
(setq yas-triggers-in-field t); Enable nested triggering of snippets | ||
(setq yas-indent-line nil) | ||
(add-to-list 'sp-no-reindent-after-kill-modes 'latex-mode) | ||
;; Raccourcis | ||
|
||
|
||
;; (use-package yasnippet-snippets) | ||
|
||
(use-package yasnippet | ||
;; :ensure yasnippet-snippets | ||
:custom | ||
(yas-verbosity 2) | ||
(yas-wrap-around-region t) | ||
(yas-global-mode 1) | ||
(yas-triggers-in-field t); Enable nested triggering of snippets | ||
(yas-indent-line nil) | ||
;; (yas-snippet-dirs '("~/.emacs.d/snippets" "~/.emacs.d/elpa/yasnippet-snippets-20220713.1234/")) | ||
|
||
:config | ||
;; afterwards | ||
;; (add-to-list 'yas-snippet-dirs "~/.emacs.d/snippets") | ||
(yas-reload-all) | ||
(yas-global-mode) | ||
(add-to-list 'sp-no-reindent-after-kill-modes 'latex-mode) | ||
;; as long as yasnippet-snippets doens't install through package-install | ||
(progn (let ((snippets-dir "~/.emacs.d/elpa/yasnippet-snippets-20220713.1234/") | ||
(snippets-package-file "~/.emacs.d/elpa/yasnippet-snippets-20220713.1234/yasnippet-snippets.el")) | ||
(add-to-list 'yas-snippet-dirs snippets-dir) | ||
(load-file snippets-package-file)) | ||
)) | ||
|
||
|