add cargo/bin to exec path
This commit is contained in:
		
							parent
							
								
									476b820019
								
							
						
					
					
						commit
						d0ff0b78ad
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										3
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								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")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue