Skip to content

Commit

Permalink
tweak: don't disable some packages based on executable-find
Browse files Browse the repository at this point in the history
The binary can be not installed on the running machine, however, we can still
use these packages with remote hosts where the tool is installed.

Signed-off-by: Abdelhak Bougouffa <abougouffa@fedoraproject.org>
  • Loading branch information
abougouffa committed Jan 18, 2024
1 parent 641dd76 commit c466611
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion modules/me-debug.el
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@

(use-package disaster
:straight t
:when (executable-find "objdump")
:init
(+map-local! :keymaps '(c-mode-map c++-mode-map fortran-mode-map)
"D" #'disaster))
Expand Down
3 changes: 1 addition & 2 deletions modules/me-embedded.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
:straight t)

(use-package virtual-dts-mode
:straight (:host github :repo "connorfeeley/virtual-dts-mode")
:when (executable-find "dtc"))
:straight (:host github :repo "connorfeeley/virtual-dts-mode"))

(use-package bitbake
:straight (bitbake-modes :host bitbucket :repo "olanilsson/bitbake-modes")
Expand Down
1 change: 0 additions & 1 deletion modules/me-files.el
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@

(use-package dired-rsync
:straight (:files ("dired-rsync.el" "dired-rsync-transient.el"))
:when (executable-find "rsync")
:bind (:map
dired-mode-map
("C-c C-r" . dired-rsync)
Expand Down
1 change: 0 additions & 1 deletion modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@

(use-package pyenv
:straight (:host github :repo "aiguofer/pyenv.el")
:when (executable-find "pyenv")
:hook (minemacs-first-python-file . global-pyenv-mode)
:custom
(pyenv-show-active-python-in-modeline nil))
Expand Down
2 changes: 1 addition & 1 deletion modules/me-tools.el
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
(use-package envrc
:straight t
:hook (minemacs-first-file . envrc-global-mode)
:when (and (not os/win) (executable-find "direnv"))
:unless os/win
:custom
(envrc-debug minemacs-debug-p)
:config
Expand Down
1 change: 0 additions & 1 deletion modules/me-vc.el
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
(use-package repo
;; TEMP: Use my fork until my PR gets merged upstream
:straight (:host github :repo "abougouffa/repo-el")
:when (executable-find "repo")
:init
(+map!
"gr" '(nil :wk "repo")
Expand Down

0 comments on commit c466611

Please sign in to comment.