fix(tazjin/emacs): Kill vterm buffers if their process exits
This has somehow stopped being a thing in newer vterm versions, causing the weird behaviour with my term switcher - buffers with the correct name were sticking around, but no longer in the right mode. Change-Id: Ie641eb3db91808d7d1016de1e8ef3ad271c8995e Reviewed-on: https://cl.tvl.fyi/c/depot/+/1931 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
This commit is contained in:
		
							parent
							
								
									11430f4a4b
								
							
						
					
					
						commit
						7f1c9bc234
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -165,7 +165,8 @@
 | 
				
			||||||
  :config (progn
 | 
					  :config (progn
 | 
				
			||||||
            (setq vterm-shell "fish")
 | 
					            (setq vterm-shell "fish")
 | 
				
			||||||
            (setq vterm-exit-functions
 | 
					            (setq vterm-exit-functions
 | 
				
			||||||
                  (lambda (&rest _) (kill-buffer (current-buffer))))))
 | 
					                  (lambda (&rest _) (kill-buffer (current-buffer))))
 | 
				
			||||||
 | 
					            (setq vterm-kill-buffer-on-exit t)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; vterm removed the ability to set a custom title generator function
 | 
					;; vterm removed the ability to set a custom title generator function
 | 
				
			||||||
;; via the public API, so this overrides its private title generation
 | 
					;; via the public API, so this overrides its private title generation
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue