 ;; if (condition) {
 ;;   statement;
 ;; }
-(eval-after-load 'cc-mode
-  '(progn
-     (if (assoc 'other c-default-style)
-         (setcdr (assoc 'other c-default-style)
-                 "k&r")
-       (push '(other . "k&r") c-default-style))
-     (setq-default c-basic-offset 2)))
+(with-eval-after-load 'cc-mode
+  (if (assoc 'other c-default-style)
+      (setcdr (assoc 'other c-default-style)
+              "k&r")
+    (push '(other . "k&r") c-default-style))
+  (setq-default c-basic-offset 2))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;;; Packages: Managing Emacs

  (diminish 'abbrev-mode)

  ;; Don't show `smerge-mode' in the mode line.
  (eval-after-load 'smerge-mode
    '(diminish 'smerge-mode)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Packages: Window management

        (define-key projectile-mode-map [remap projectile-switch-to-buffer] nil)
        (projectile-commander-bindings))))

  (with-eval-after-load 'projectile
    (counsel-projectile-toggle 1)))

;; Provides an enhanced version of Isearch that uses Ivy to display
;; a preview of the results.
