* added markdown-mode
This commit is contained in:
		
							parent
							
								
									2ec20941fd
								
							
						
					
					
						commit
						75d437e45a
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		
							
								
								
									
										9
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
					@ -8,7 +8,7 @@
 | 
				
			||||||
  (package-refresh-contents))
 | 
					  (package-refresh-contents))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; Important packages
 | 
					;; Important packages
 | 
				
			||||||
(defvar my-pkgs '(starter-kit starter-kit-bindings haskell-mode magit color-theme-solarized)
 | 
					(defvar my-pkgs '(starter-kit starter-kit-bindings haskell-mode markdown-mode magit color-theme-solarized)
 | 
				
			||||||
  "A list of packages to install at launch.")
 | 
					  "A list of packages to install at launch.")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(dolist (p my-pkgs)
 | 
					(dolist (p my-pkgs)
 | 
				
			||||||
| 
						 | 
					@ -63,6 +63,13 @@
 | 
				
			||||||
(windmove-default-keybindings 'meta)
 | 
					(windmove-default-keybindings 'meta)
 | 
				
			||||||
(setq windmove-wrap-around t)
 | 
					(setq windmove-wrap-around t)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;; Configure markdown-mode
 | 
				
			||||||
 | 
					(autoload 'markdown-mode "markdown-mode"
 | 
				
			||||||
 | 
					  "Major mode for editing Markdown files" t)
 | 
				
			||||||
 | 
					(add-to-list 'auto-mode-alist '("\\.txt\\'" . markdown-mode))
 | 
				
			||||||
 | 
					(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
 | 
				
			||||||
 | 
					(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; Configure haskell-mode
 | 
					;; Configure haskell-mode
 | 
				
			||||||
;; Enable semi-automatic indentation and font-locking
 | 
					;; Enable semi-automatic indentation and font-locking
 | 
				
			||||||
(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
 | 
					(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue