mirror of
				https://github.com/larstvei/dot-emacs.git
				synced 2025-11-04 01:20:11 +00:00 
			
		
		
		
	Only start server when it's not already running
This commit is contained in:
		
							parent
							
								
									9fb33b3c7f
								
							
						
					
					
						commit
						d19a91f485
					
				
							
								
								
									
										4
									
								
								init.org
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								init.org
									
									
									
									
									
								
							@ -168,12 +168,14 @@
 | 
				
			|||||||
  (add-hook
 | 
					  (add-hook
 | 
				
			||||||
   'after-init-hook
 | 
					   'after-init-hook
 | 
				
			||||||
   (lambda ()
 | 
					   (lambda ()
 | 
				
			||||||
 | 
					     (require 'server)
 | 
				
			||||||
     (let ((private-file (concat user-emacs-directory "private.el")))
 | 
					     (let ((private-file (concat user-emacs-directory "private.el")))
 | 
				
			||||||
       (when (file-exists-p private-file)
 | 
					       (when (file-exists-p private-file)
 | 
				
			||||||
         (load-file private-file))
 | 
					         (load-file private-file))
 | 
				
			||||||
       (when (file-exists-p custom-file)
 | 
					       (when (file-exists-p custom-file)
 | 
				
			||||||
         (load-file custom-file))
 | 
					         (load-file custom-file))
 | 
				
			||||||
       (server-start))))
 | 
					       (unless (server-running-p)
 | 
				
			||||||
 | 
					         (server-start)))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  #+end_src
 | 
					  #+end_src
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user