From 11bdeaedb3f82abc96a8c67a046e97abc4c53693 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Fri, 17 Oct 2025 21:49:43 +0200 Subject: [PATCH] Uses quelpa instead of straight. I was getting tired of the message. Also just configure it for github remote. --- .emacs | 46 +++++++++++++++++++--------------------------- 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/.emacs b/.emacs index dad8559..936b189 100644 --- a/.emacs +++ b/.emacs @@ -38,7 +38,7 @@ '(org-agenda-files '("~/org/1.TODO.org")) '(package-enable-at-startup nil) '(package-selected-packages - '(code-cells clang-format+ cmake-format xterm-color dockerfile-mode web-mode prettier json-mode py-isort blacken pyvenv yaml-mode lsp-pyright ng2-mode lsp-ltex lsp-treemacs treemacs-nerd-icons treemacs-projectile treemacs lsp-ui lsp-mode which-key flycheck vterm projectile yasnippet-snippets yasnippet aggressive-indent doom-themes company-go zenburn-theme langtool smart-tabs-mode typescript-mode protobuf-mode opencl-mode glsl-mode go-mode markdown-mode srefactor irony cmake-mode company magit use-package)) + '(spdx opencl-c-mode polymode string-inflection code-cells clang-format+ cmake-format xterm-color dockerfile-mode web-mode prettier json-mode py-isort blacken pyvenv yaml-mode lsp-pyright ng2-mode lsp-ltex lsp-treemacs treemacs-nerd-icons treemacs-projectile treemacs lsp-ui lsp-mode which-key flycheck vterm projectile yasnippet-snippets yasnippet aggressive-indent doom-themes company-go zenburn-theme langtool smart-tabs-mode typescript-mode protobuf-mode opencl-mode glsl-mode go-mode markdown-mode srefactor irony cmake-mode company magit use-package)) '(safe-local-variable-values '((vc-follow-symlinks . t) (TeX-master . t) @@ -70,23 +70,23 @@ ("gnu" . "https://elpa.gnu.org/packages/"))) (package-initialize) -(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) + + +(unless (package-installed-p 'quelpa) + (with-temp-buffer + (url-insert-file-contents "https://raw.githubusercontent.com/quelpa/quelpa/master/quelpa.el") + (eval-buffer) + (quelpa-self-upgrade))) +(setq quelpa-checkout-melpa-p nil) +(setq quelpa-use-package-inhibit-loading-quelpa t) +(quelpa + '(quelpa-use-package + :fetcher github + :repo "quelpa/quelpa-use-package.git")) +(require 'quelpa-use-package) + + (require 'use-package-ensure) (setq use-package-always-ensure t) @@ -439,15 +439,6 @@ :after yasnippet ) -(use-package yasnippet-licenses - :straight (yasnippet-licenses - :type git - :host github - :repo "atuleu/yasnippet-licenses" - :files (:defaults "*.el" "snippets") - ) - :after yasnippet - ) @@ -1063,8 +1054,9 @@ (dockerfile-mode . lsp-deferred) ) + (use-package spdx - :straight (:host github :repo "condy0919/spdx.el") + :quelpa (spdx :fetcher github :repo "condy0919/spdx.el") :bind (:map prog-mode-map ("C-c i l" . spdx-insert-spdx)) :custom