Load emacs-pet from github
Finally, this commit puts elpaca to use and does the thing I've been wanting to do, which is being able to develop packages that I am using in a seamless way and being able to contribute PRs upstream. If this experiment goes well, I will merge this branch back into main and continue using elpaca for my package management needs.
This commit is contained in:
parent
5fc4596f2a
commit
08d18e3fbe
2 changed files with 42 additions and 36 deletions
|
@ -5306,11 +5306,9 @@ Poetry takes care of setting up the venv properly, so if you replace the default
|
|||
|
||||
(use-package python
|
||||
:ensure nil
|
||||
:ensure-system-package (dasel sqlite3)
|
||||
;;; Uncomment this if you want Eglot to start automatically. I don't
|
||||
;;; recommend it because it does not give you time to activate the
|
||||
;;; appropriate VirtualEnv and get the best of the situation.
|
||||
:hook ((python-base-mode . eglot-ensure))
|
||||
;;; Uncomment this if you want Eglot to start automatically. I prefer
|
||||
;;; calling `M-x eglot' myself.
|
||||
;; :hook ((python-base-mode . eglot-ensure))
|
||||
:config
|
||||
(setq python-shell-dedicated 'project)
|
||||
;; Apheleia is an Emacs package for formatting code as you save
|
||||
|
@ -5320,13 +5318,18 @@ Poetry takes care of setting up the venv properly, so if you replace the default
|
|||
(setf (alist-get 'python-mode apheleia-mode-alist)
|
||||
'(ruff-isort ruff))
|
||||
(setf (alist-get 'python-ts-mode apheleia-mode-alist)
|
||||
'(ruff-isort ruff)))
|
||||
(with-eval-after-load 'eglot
|
||||
(require 'vedang-pet)
|
||||
'(ruff-isort ruff))))
|
||||
|
||||
(use-package pet
|
||||
:ensure (:host github :repo "vedang/emacs-pet" :branch "fix-eglot-integration"
|
||||
;; :remotes (("upstream" :repo "wyuenho/emacs-pet" :branch "main"))
|
||||
)
|
||||
:ensure-system-package (dasel sqlite3)
|
||||
:config
|
||||
;; The -10 here is a way to define the priority of the function in
|
||||
;; the list of hook functions. We want `pet-mode' to run before
|
||||
;; any other configured hook function.
|
||||
(add-hook 'python-base-mode-hook #'pet-mode -10)))
|
||||
;; the list of hook functions. We want `pet-mode' to run before any
|
||||
;; other configured hook function.
|
||||
(add-hook 'python-base-mode-hook #'pet-mode -10))
|
||||
#+end_src
|
||||
|
||||
*** Tooling I have tried and rejected or failed to setup correctly
|
||||
|
|
|
@ -373,11 +373,9 @@ modifications."
|
|||
|
||||
(use-package python
|
||||
:ensure nil
|
||||
:ensure-system-package (dasel sqlite3)
|
||||
;;; Uncomment this if you want Eglot to start automatically. I don't
|
||||
;;; recommend it because it does not give you time to activate the
|
||||
;;; appropriate VirtualEnv and get the best of the situation.
|
||||
:hook ((python-base-mode . eglot-ensure))
|
||||
;;; Uncomment this if you want Eglot to start automatically. I prefer
|
||||
;;; calling `M-x eglot' myself.
|
||||
;; :hook ((python-base-mode . eglot-ensure))
|
||||
:config
|
||||
(setq python-shell-dedicated 'project)
|
||||
;; Apheleia is an Emacs package for formatting code as you save
|
||||
|
@ -387,13 +385,18 @@ modifications."
|
|||
(setf (alist-get 'python-mode apheleia-mode-alist)
|
||||
'(ruff-isort ruff))
|
||||
(setf (alist-get 'python-ts-mode apheleia-mode-alist)
|
||||
'(ruff-isort ruff)))
|
||||
(with-eval-after-load 'eglot
|
||||
(require 'vedang-pet)
|
||||
'(ruff-isort ruff))))
|
||||
|
||||
(use-package pet
|
||||
:ensure (:host github :repo "vedang/emacs-pet" :branch "fix-eglot-integration"
|
||||
;; :remotes (("upstream" :repo "wyuenho/emacs-pet" :branch "main"))
|
||||
)
|
||||
:ensure-system-package (dasel sqlite3)
|
||||
:config
|
||||
;; The -10 here is a way to define the priority of the function in
|
||||
;; the list of hook functions. We want `pet-mode' to run before
|
||||
;; any other configured hook function.
|
||||
(add-hook 'python-base-mode-hook #'pet-mode -10)))
|
||||
;; the list of hook functions. We want `pet-mode' to run before any
|
||||
;; other configured hook function.
|
||||
(add-hook 'python-base-mode-hook #'pet-mode -10))
|
||||
|
||||
;;;; Configuration for Zig Programming
|
||||
|
||||
|
|
Loading…
Reference in a new issue