Uses yasnippet-licenses through straight

This commit is contained in:
2023-11-30 16:20:58 +01:00
parent 44f4ee000f
commit e6d452cac2

36
.emacs
View File

@@ -69,16 +69,24 @@
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(eval-when-compile
(unless (package-installed-p 'use-package)
(unless package-archive-contents
(package-refresh-contents))
(package-install 'use-package)
)
(require 'use-package)
)
(require 'use-package)
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name
"straight/repos/straight.el/bootstrap.el"
(or (bound-and-true-p straight-base-dir)
user-emacs-directory)))
(bootstrap-version 7))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
(require 'use-package-ensure)
(setq use-package-always-ensure t)
@@ -540,6 +548,16 @@
:after yasnippet
)
(use-package yasnippet-licenses
:straight (yasnippet-licenses
:type git
:host github
:repo "atuleu/yasnippet-licenses"
:files (:defaults "*.el" "snippets")
)
:after yasnippet
)
(use-package projectile
:bind ( :map projectile-mode-map
( "C-c p" . 'projectile-command-map)