Added initial emacs init
This commit is contained in:
		
							parent
							
								
									384b4e1ec1
								
							
						
					
					
						commit
						ee76e971ce
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								init.el
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								init.el
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
(require 'package)
 | 
			
		||||
(add-to-list 'package-archives
 | 
			
		||||
	     '("marmalade" . "http://marmalade-repo.org/packages/") t)
 | 
			
		||||
(package-initialize)
 | 
			
		||||
 | 
			
		||||
(when (not package-archive-contents)
 | 
			
		||||
  (package-refresh-contents))
 | 
			
		||||
 | 
			
		||||
;; Important packages
 | 
			
		||||
(defvar my-pkgs '(starter-kit starter-kit-bindings haskell-mode)
 | 
			
		||||
  "A list of packages to install at launch.")
 | 
			
		||||
 | 
			
		||||
(dolist (p my-pkgs)
 | 
			
		||||
  (when (not (package-installed-p p))
 | 
			
		||||
    (package-install p)))
 | 
			
		||||
 | 
			
		||||
;; Configure haskell-mode
 | 
			
		||||
(custom-set-variables
 | 
			
		||||
 '(haskell-mode-hook '(turn-on-haskell-indentation)))
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue