File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 144
144
:straight t
145
145
:when (and (or (executable-find " dasel" ) (executable-find " yq" ))
146
146
(or (+emacs-features-p 'sqlite3 ) (executable-find " sqlite3" )))
147
+ :hook (pet-mode . +pet-quickrun-setup)
147
148
:init
148
- (add-hook 'python-base-mode-hook 'pet-mode -10 ))
149
+ (add-hook 'python-base-mode-hook 'pet-mode -10 )
150
+ :config
151
+ (defun +pet-quickrun-setup ()
152
+ (with-eval-after-load 'quickrun
153
+ (let* ((cmd-alist (copy-alist (alist-get " python" quickrun--language-alist nil nil #'equal ))))
154
+ (setcar (assq :command cmd-alist) (pet-executable-find " python" ))
155
+ (setq-local quickrun-option-cmd-alist cmd-alist)))))
149
156
150
157
151
158
; ; Adds the "node_modules/.bin" directory to the buffer "exec_path"
You can’t perform that action at this time.
0 commit comments