[init] Add Erlang config
This commit is contained in:
		
							parent
							
								
									e5ece0c35a
								
							
						
					
					
						commit
						d9bd9ef50c
					
				
					 2 changed files with 9 additions and 4 deletions
				
			
		
							
								
								
									
										1
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
					@ -23,6 +23,7 @@
 | 
				
			||||||
    confluence
 | 
					    confluence
 | 
				
			||||||
    dash
 | 
					    dash
 | 
				
			||||||
    dockerfile-mode
 | 
					    dockerfile-mode
 | 
				
			||||||
 | 
					    erlang
 | 
				
			||||||
    flx-ido
 | 
					    flx-ido
 | 
				
			||||||
    flycheck
 | 
					    flycheck
 | 
				
			||||||
    go-mode
 | 
					    go-mode
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,10 +21,14 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; Configure Erlang mode
 | 
					;; Configure Erlang mode
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; Don't indent after '>' while I'm writing
 | 
					(defun erlang-mode-init-setup ()
 | 
				
			||||||
(add-hook 'erlang-mode-hook
 | 
					  (interactive)
 | 
				
			||||||
          '(lambda ()
 | 
					  ;; Don't indent after '>' while I'm writing
 | 
				
			||||||
             (local-set-key ">" 'self-insert-command)))
 | 
					  (local-set-key ">" 'self-insert-command)
 | 
				
			||||||
 | 
					  ;(local-set-key "RET" 'newline)
 | 
				
			||||||
 | 
					  )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(add-hook 'erlang-mode-hook 'erlang-mode-init-setup)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; Enable projectile for all things programming
 | 
					;; Enable projectile for all things programming
 | 
				
			||||||
(add-hook 'prog-mode-hook 'projectile-mode)
 | 
					(add-hook 'prog-mode-hook 'projectile-mode)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue