summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2016-06-18 07:36:17 +0200
committerrekado <rekado@elephly.net>2016-06-18 10:03:37 +0200
commitdad9aa80d732d17825621f661facb1b8e8da877b (patch)
tree6ad28e816413aac2c5c8baa4a87f06d268c17ad0 /init.el
parent656fa4da299671bd166c63727c0fcc848473e915 (diff)
Narrow tab-width (except in shell-mode).
Diffstat (limited to 'init.el')
-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)))