From 4058ea89d9c6a82ec0dac504e7205cbf22c9ceb3 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 16 Jul 2023 00:45:01 -0400 Subject: converted init code to use use-package --- init/flycheck/init-flycheck-cargo-has-command-p-fix.el | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 init/flycheck/init-flycheck-cargo-has-command-p-fix.el (limited to 'init/flycheck/init-flycheck-cargo-has-command-p-fix.el') diff --git a/init/flycheck/init-flycheck-cargo-has-command-p-fix.el b/init/flycheck/init-flycheck-cargo-has-command-p-fix.el deleted file mode 100644 index 48d53d6..0000000 --- a/init/flycheck/init-flycheck-cargo-has-command-p-fix.el +++ /dev/null @@ -1,7 +0,0 @@ -(defun init-flycheck-rust-cargo-has-command-p (command) - (let* ((commands (process-lines "cargo" "--list")) - (trimmed (-map (lambda (row) (-slice row 4 (string-search " " 4))) commands))) - (seq-contains-p (-rest trimmed) command))) - -(advice-add 'flycheck-rust-cargo-has-command-p - :override 'init-flycheck-rust-cargo-has-command-p) -- cgit v1.2.3