Skip to content

Commit

Permalink
yasnippet-snippets loading temporary fix for AndreaCrotti/yasnippet-s…
Browse files Browse the repository at this point in the history
  • Loading branch information
dinojr committed Jan 16, 2023
1 parent 33a5551 commit bbe8074
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions elisp/JCyasnippet.el
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))
))


0 comments on commit bbe8074

Please sign in to comment.