 (when (string= system-type "darwin")
   (setq mac-right-option-modifier nil
 	mac-option-modifier nil
-        exec-path (append exec-path '("/usr/local/bin"))
+	exec-path (append exec-path '("/usr/local/bin"))
 	)
   )
 
 (set-face-attribute 'default nil :height 140)
+
+;; 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)



;; Fish shell syntax highlighting
(use-package fish-mode
  :ensure t
  )

;; Yaml syntax highlighting
(use-package yaml-mode

  :init (global-git-gutter-mode)
  )

(use-package all-the-icons :ensure t)

(use-package smartparens
  :ensure t
