Support emacs fn for rebuilding wpcarros-emacs
Call `M-x` `nix/rebuild-emacs` to build and link `wpcarros-emacs`.
This commit is contained in:
		
							parent
							
								
									2cfcb1c34d
								
							
						
					
					
						commit
						ffbe5c9757
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -21,6 +21,13 @@
 | 
				
			||||||
(use-package nix-mode
 | 
					(use-package nix-mode
 | 
				
			||||||
  :mode "\\.nix\\'")
 | 
					  :mode "\\.nix\\'")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(defun nix/rebuild-emacs ()
 | 
				
			||||||
 | 
					  "Use nix-env to rebuild wpcarros-emacs."
 | 
				
			||||||
 | 
					  (interactive)
 | 
				
			||||||
 | 
					  (start-process "nix-build/<briefcase>.emacs" "*nix-build/<briefcase>.emacs*"
 | 
				
			||||||
 | 
					                 "nix-env" "-f" (f-join (getenv "BRIEFCASE") "emacs") "-i")
 | 
				
			||||||
 | 
					  (display-buffer "*nix-build/<briefcase>.emacs*"))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(defun nix/sly-from-briefcase (attribute)
 | 
					(defun nix/sly-from-briefcase (attribute)
 | 
				
			||||||
  "Start a Sly REPL configured with a Lisp matching a derivation
 | 
					  "Start a Sly REPL configured with a Lisp matching a derivation
 | 
				
			||||||
  from my monorepo.
 | 
					  from my monorepo.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue