diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-11-11 13:31:39 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-11-11 13:31:39 +0100 |
commit | 9aba1ce59ff6c6d86768ec607c096818254713c5 (patch) | |
tree | f74cd519296b35de2c18d7d51425a0fd7180732b /.config/emacs | |
parent | 688586330622053510a51cf4b1d8378ec005f7a8 (diff) |
Prefer spaces to tabs in Humanwave
Diffstat (limited to '.config/emacs')
-rw-r--r-- | .config/emacs/early-init.el | 3 | ||||
-rw-r--r-- | .config/emacs/modules/mm-editing.el | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/.config/emacs/early-init.el b/.config/emacs/early-init.el index fb2625a..1b78baf 100644 --- a/.config/emacs/early-init.el +++ b/.config/emacs/early-init.el @@ -43,6 +43,9 @@ (defconst mm-darwin-p (eq system-type 'darwin) "This variable is non-nil if Emacs is running on a Darwin system.") +(defconst mm-humanwave-p (file-exists-p "~/.humanwavep") + "This variable is non-nil if Emacs is running on a Humanwave system.") + ;;; Basic Frame Settings diff --git a/.config/emacs/modules/mm-editing.el b/.config/emacs/modules/mm-editing.el index 40511cc..5072366 100644 --- a/.config/emacs/modules/mm-editing.el +++ b/.config/emacs/modules/mm-editing.el @@ -42,7 +42,7 @@ (setq-default tab-width 4 - indent-tabs-mode t) + indent-tabs-mode (not mm-humanwave-p)) (defvar mm-editing-indentation-settings-alist '((c-mode . (:extras c-basic-offset)) |