emacs: Added clojure stuff
This commit is contained in:
		
							parent
							
								
									b3940040a2
								
							
						
					
					
						commit
						a5a7db8f1b
					
				
					 1 changed files with 17 additions and 1 deletions
				
			
		
							
								
								
									
										18
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
					@ -15,7 +15,8 @@
 | 
				
			||||||
                  magit
 | 
					                  magit
 | 
				
			||||||
                  color-theme-solarized
 | 
					                  color-theme-solarized
 | 
				
			||||||
                  projectile
 | 
					                  projectile
 | 
				
			||||||
                  rainbow-delimiters)
 | 
					                  rainbow-delimiters
 | 
				
			||||||
 | 
					                  nrepl)
 | 
				
			||||||
  "A list of packages to install at launch.")
 | 
					  "A list of packages to install at launch.")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(dolist (p my-pkgs)
 | 
					(dolist (p my-pkgs)
 | 
				
			||||||
| 
						 | 
					@ -86,6 +87,20 @@
 | 
				
			||||||
(define-key haskell-mode-map (kbd "C-,") 'haskell-move-nested-left)
 | 
					(define-key haskell-mode-map (kbd "C-,") 'haskell-move-nested-left)
 | 
				
			||||||
(define-key haskell-mode-map (kbd "C-.") 'haskell-move-nested-right)
 | 
					(define-key haskell-mode-map (kbd "C-.") 'haskell-move-nested-right)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;; Configure nreply (Clojure mode)
 | 
				
			||||||
 | 
					(require 'nrepl)
 | 
				
			||||||
 | 
					;; eldoc in clojure
 | 
				
			||||||
 | 
					(add-hook 'nrepl-interaction-mode-hook
 | 
				
			||||||
 | 
					  'nrepl-turn-on-eldoc-mode)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;; Don't annoy me
 | 
				
			||||||
 | 
					(setq nrepl-hide-special-buffers t)
 | 
				
			||||||
 | 
					(setq nrepl-popup-stacktraces nil)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;; Paredit in nrepl
 | 
				
			||||||
 | 
					(add-hook 'nrepl-mode-hook 'paredit-mode)
 | 
				
			||||||
 | 
					(add-hook 'nrepl-mode-hook 'rainbow-delimiters-mode)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; IRC configuration (erc)
 | 
					;; IRC configuration (erc)
 | 
				
			||||||
;; Actual servers and such are loaded from irc.el
 | 
					;; Actual servers and such are loaded from irc.el
 | 
				
			||||||
(require 'erc)
 | 
					(require 'erc)
 | 
				
			||||||
| 
						 | 
					@ -121,6 +136,7 @@
 | 
				
			||||||
 ;; If you edit it by hand, you could mess it up, so be careful.
 | 
					 ;; If you edit it by hand, you could mess it up, so be careful.
 | 
				
			||||||
 ;; Your init file should contain only one such instance.
 | 
					 ;; Your init file should contain only one such instance.
 | 
				
			||||||
 ;; If there is more than one, they won't work right.
 | 
					 ;; If there is more than one, they won't work right.
 | 
				
			||||||
 | 
					 '(custom-safe-themes (quote ("fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" "1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" "d6a00ef5e53adf9b6fe417d2b4404895f26210c52bb8716971be106550cea257" default)))
 | 
				
			||||||
 '(erc-modules (quote (autojoin button completion dcc irccontrols list log match menu move-to-prompt netsplit networks noncommands notifications readonly ring scrolltobottom stamp track))))
 | 
					 '(erc-modules (quote (autojoin button completion dcc irccontrols list log match menu move-to-prompt netsplit networks noncommands notifications readonly ring scrolltobottom stamp track))))
 | 
				
			||||||
(custom-set-faces
 | 
					(custom-set-faces
 | 
				
			||||||
 ;; custom-set-faces was added by Custom.
 | 
					 ;; custom-set-faces was added by Custom.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue