diff --git a/emacs/.emacs.d/config/init-run-command.el b/emacs/.emacs.d/config/init-run-command.el index c85c850..f961e2a 100644 --- a/emacs/.emacs.d/config/init-run-command.el +++ b/emacs/.emacs.d/config/init-run-command.el @@ -278,12 +278,19 @@ (defun run-command-recipe-cargo () (when-let* ((project-dir (locate-dominating-file default-directory "Cargo.toml")) (cargo-cmds (get-cargo-commands project-dir))) - (-map - (lambda (cmd) - (list :command-name cmd - :command-line (format "cargo %s" cmd) - :working-dir project-dir)) - cargo-cmds))) + (-concat (-map + (lambda (cmd) + (list :command-name cmd + :command-line (format "cargo %s" cmd) + :working-dir project-dir)) + cargo-cmds) + (list + (list :command-name "doc --open" + :command-line "cargo doc --open" + :working-dir project-dir) + (list :command-name "build --release" + :command-line "cargo build --release" + :working-dir project-dir))))) :general (leader-map "\"" #'run-command)