 line if no region is defined.
 
 Optional argument ARG same as `comment-dwim''s."
-  (interactive "*P")
-  (if (and (not (use-region-p)))
-      (comment-or-uncomment-region (line-beginning-position) (line-end-position))
-    (apply comment-dwim args)))
-(advice-add 'comment-dwim :around 'comment-dwim-advice)
+    (interactive "*P")
+    (if (and (not (use-region-p)))
+        (comment-or-uncomment-region (line-beginning-position) (line-end-position))
+      (apply comment-dwim args)))
+  (advice-add 'comment-dwim :around 'comment-dwim-advice))
 
 (use-package bind-key)
 


;; Let the themes deal with these things
(dolist (param '(background-mode tty-color-mode screen-gamma
                 alpha font foreground-color background-color mouse-color
                 cursor-color border-color scroll-bar-foreground
                 scroll-bar-background))
  (add-to-list 'frameset-filter-alist `(,param . :never)))

(when (display-graphic-p)

  :config
  (with-eval-after-load 'powerline
    (advice-add 'powerline-major-mode :around
                (lambda (fn &rest args)
                  (let* ((major-mode-segment (apply fn args))
                         (props (text-properties-at 0 major-mode-segment))
                         (icon (all-the-icons-icon-for-mode major-mode))
                         (face-prop (and (stringp icon) (get-text-property 0 'face icon))))
