diff --git a/README.org b/README.org index eeca5706..9ee0a9ae 100644 --- a/README.org +++ b/README.org @@ -425,6 +425,7 @@ Let's make xref use ripgrep instead of grep for speed. I am currently using NixOS. In order for emacs to have access to certain programs, we need to set some environment variables #+begin_src emacs-lisp (add-to-list 'exec-path "/usr/bin") +(add-to-list 'exec-path "~/.cargo/bin") (setenv "NIX_CONF_DIR" "/etc/nix") (setenv "NIX_REMOTE" "daemon") (setenv "XCURSOR_THEME" "phinger-cursors-light") @@ -4837,7 +4838,7 @@ Let's add our own eshell prompt. and set the password cache to a significantly h (setq eshell-banner-message "") - (setq eshell-path-env "/usr/local/bin:/usr/bin:/opt/android-sdk/cmdline-tools/latest/bin:/home/chris/.cargo/bin") + (add-to-list 'eshell-path-env-list "/home/chris/.cargo/bin") ;; this makes it so flutter works properly (setenv "ANDROID_SDK_ROOT" "/opt/android-sdk") diff --git a/init.el b/init.el index f58da0ed..02ff9457 100644 --- a/init.el +++ b/init.el @@ -207,6 +207,7 @@ (setq xref-search-program 'ripgrep) (add-to-list 'exec-path "/usr/bin") +(add-to-list 'exec-path "~/.cargo/bin") (setenv "NIX_CONF_DIR" "/etc/nix") (setenv "NIX_REMOTE" "daemon") (setenv "XCURSOR_THEME" "phinger-cursors-light") @@ -3520,7 +3521,7 @@ targets." (setq eshell-banner-message "") - (setq eshell-path-env "/usr/local/bin:/usr/bin:/opt/android-sdk/cmdline-tools/latest/bin:/home/chris/.cargo/bin") + (add-to-list 'eshell-path-env-list "/home/chris/.cargo/bin") ;; this makes it so flutter works properly (setenv "ANDROID_SDK_ROOT" "/opt/android-sdk")