summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.el b/init.el
index 0a5c8c2..5c845e4 100644
--- a/init.el
+++ b/init.el
@@ -214,3 +214,8 @@
;; PDF view mode
(setq pdf-info-epdfinfo-program "~/.guix-profile/bin/epdfinfo")
(pdf-tools-install)
+
+;; Use narrow tab width except in shell mode (for ls output)
+(set-default 'tab-width 4)
+(setq tab-width 4)
+(add-hook 'shell-mode-hook (lambda () (setq tab-width 8)))