 (electric-indent-mode +1)
 
 (defun enable_flyspell ()
+  "Set flyspell dictionary."
   (ispell-change-dictionary "american")
   (flyspell-prog-mode))
 

(global-linum-mode 1) ; Show line numbers
(column-number-mode 1) ; Show cursor column position
(desktop-save-mode 1) ; Save/restore opened buffers
(company-mode 1) ; Enable company mode
(flycheck-mode 1) ; Enable flycheck

;; Use regex searches by default.
(global-set-key (kbd "C-s") 'isearch-forward-regexp)


;; Ruby
;; Don't indent parameters inside parens more than normal 
(defvar ruby-deep-indent-paren nil)
;; enable subword (CamelCase-aware) just in ruby-mode
(add-hook 'ruby-mode-hook 'subword-mode)

