 ; haskell-mode comes with. In exchange, enable LaTeX mode whenever we open up a
 ; `.lhs' file. Using mmm-mode, we will activate `haskell-mode' in the code
 ; sections.
-(setq auto-mode-alist (remove (rassoc 'literate-haskell-mode auto-mode-alist) auto-mode-alist))
+(setq auto-mode-alist
+	(remove (rassoc 'literate-haskell-mode auto-mode-alist) auto-mode-alist))
 (add-to-list 'auto-mode-alist '("\\.lhs$" . latex-mode))
 
 ; The "Haskell-Cabal" mode that comes built-in with haskell-mode needs some

	(let
		((one-elscreen (elscreen-one-screen-p)) (one-window (one-window-p)))
		(cond
			; if current tab has split windows in it, close the current live window
			((not one-window) (delete-window) (balance-windows) nil)
			; if there are multiple elscreens (tabs), close the current elscreen
			((not one-elscreen) (elscreen-kill) nil)
			; if there is only one elscreen, just try to quit (calling elscreen-kill
			; will not work, because elscreen-kill fails if there is only one
			; elscreen)
			(one-elscreen (evil-quit) nil)
		)
	)

; Ruby
(add-hook 'ruby-mode-hook
	(lambda ()
		(modify-syntax-entry ?_ "w")
	)
)

