 ;; 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

;; e.g. "C++/l" into "C++". Since we are overriding a function
;; provided by `cc-mode', which is not initially loaded, we have to
;; make sure to do so *after* it is loaded and not before.
(eval-after-load 'cc-mode
  (lambda ()
    (advice-add #'c-update-modeline :override #'ignore)))

;; Switch to a better indentation-and-braces style. This turns the
;; following code:

        (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.
