about summary refs log tree commit diff
path: root/modules/workstation/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/workstation/emacs/init.el')
-rw-r--r--modules/workstation/emacs/init.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el
index d15b25168172..4c480b86f094 100644
--- a/modules/workstation/emacs/init.el
+++ b/modules/workstation/emacs/init.el
@@ -26,12 +26,14 @@
 (add-to-list 'auto-mode-alist '("\\.quirks\\'" . conf-unix-mode))
 
 ;;; CC Mode ;;;
-;; Default to kernel style.
-(add-to-list 'c-default-style '(other . "linux"))
+(with-eval-after-load 'cc-styles
+  ;; Default to kernel style.
+  (add-to-list 'c-default-style '(other . "linux")))
 
 ;;; Dired ;;;
-(setq dired-listing-switches
-      (combine-and-quote-strings '(dired-listing-switches "-h")))
+(with-eval-after-load 'dired
+  (setq dired-listing-switches
+	(combine-and-quote-strings `(,dired-listing-switches "-h"))))
 
 ;;; Direnv ;;;
 (direnv-mode)