Only load irc.el and init-local if they exist
This commit is contained in:
		
							parent
							
								
									9112881277
								
							
						
					
					
						commit
						1ba56be2ee
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		
							
								
								
									
										10
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
					@ -68,12 +68,16 @@
 | 
				
			||||||
(load "~/.emacs.d/init-bindings.el")
 | 
					(load "~/.emacs.d/init-bindings.el")
 | 
				
			||||||
(load "~/.emacs.d/init-eshell.el")
 | 
					(load "~/.emacs.d/init-eshell.el")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; A file with machine specific settings
 | 
					(defun load-file-if-exists (filename)
 | 
				
			||||||
(load "~/.emacs.d/init-local.el")
 | 
					  (if (file-exists-p filename)
 | 
				
			||||||
 | 
					      (load filename)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;; A file with machine specific settings.
 | 
				
			||||||
 | 
					(load-file-if-exists "~/.emacs.d/init-local.el")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; IRC configuration (erc)
 | 
					;; IRC configuration (erc)
 | 
				
			||||||
;; Actual servers and such are loaded from irc.el
 | 
					;; Actual servers and such are loaded from irc.el
 | 
				
			||||||
(load "~/.emacs.d/irc")
 | 
					(load-file-if-exists "~/.emacs.d/irc.el")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; Load magnars' string manipulation library
 | 
					;; Load magnars' string manipulation library
 | 
				
			||||||
(require 's)
 | 
					(require 's)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue