fix(emacs): withLocalEmacs now loads packages via $EMACSLOADPATH
				
					
				
			For some reason setting the initial load-path via `--directory` does not work and leads to an Emacs without any packages.
This commit is contained in:
		
							parent
							
								
									7e0d4d097b
								
							
						
					
					
						commit
						0b6365efe5
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -105,12 +105,14 @@ in lib.fix(self: l: f: third_party.writeShellScriptBin "tazjins-emacs" '' | ||||||
|     # Build a derivation that uses the specified local Emacs (i.e. |     # Build a derivation that uses the specified local Emacs (i.e. | ||||||
|     # built outside of Nix) instead |     # built outside of Nix) instead | ||||||
|     withLocalEmacs = emacsBin: third_party.writeShellScriptBin "tazjins-emacs" '' |     withLocalEmacs = emacsBin: third_party.writeShellScriptBin "tazjins-emacs" '' | ||||||
|  |       export EMACSLOADPATH="${(tazjinsEmacs f).deps}/share/emacs/site-lisp:" | ||||||
|       exec ${emacsBin} \ |       exec ${emacsBin} \ | ||||||
|         --debug-init \ |         --debug-init \ | ||||||
|         --no-site-file \ |         --no-site-file \ | ||||||
|  |         --no-site-lisp \ | ||||||
|         --no-init-file \ |         --no-init-file \ | ||||||
|         --directory ${(tazjinsEmacs f).deps}/share/emacs/site-lisp \ |         --directory ${./config} \ | ||||||
|         --directory ${./config} ${if l != null then "--directory ${l}" else ""} \ |         ${if l != null then "--directory ${l}" else ""} \ | ||||||
|         --eval "(require 'init)" $@ |         --eval "(require 'init)" $@ | ||||||
|     ''; |     ''; | ||||||
|   }) null identity |   }) null identity | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue