   :init
   (global-flycheck-mode)
   (setq-default flycheck-disabled-checkers '(ruby-reek))
-)
+  )
 
 ;; Git in Emacs
 (use-package magit
   :ensure t
   :init (add-hook 'git-commit-setup-hook 'turn-off-auto-fill
 		  t)
-        (setq magit-refresh-status-buffer nil)
-	;; Disable showing diff in commit
-	(remove-hook 'server-switch-hook 'magit-commit-diff)
+  (setq magit-refresh-status-buffer nil)
+  ;; Disable showing diff in commit
+  (remove-hook 'server-switch-hook 'magit-commit-diff)
   )
 (use-package forge
   :ensure t


;; https://stackoverflow.com/a/9697222/1425701
(defun comment-or-uncomment-region-or-line ()
    "Comments or uncomments the region or the current line if there's no active region."
    (interactive)
    (let (beg end)
        (if (region-active-p)
            (setq beg (region-beginning) end (region-end))
            (setq beg (line-beginning-position) end (line-end-position)))
        (comment-or-uncomment-region beg end)))

;; Auto scroll rspec tests
(setq compilation-scroll-output t)

  (diminish 'eldoc-mode)
  (diminish 'smartparens-mode)
  (diminish 'undo-tree-mode)
  )

(use-package exec-path-from-shell
  :ensure t
  :init (when (memq window-system '(mac ns x))
	  (exec-path-from-shell-initialize))
  )


