From 9aba1ce59ff6c6d86768ec607c096818254713c5 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 11 Nov 2024 13:31:39 +0100 Subject: Prefer spaces to tabs in Humanwave --- .config/emacs/early-init.el | 3 +++ .config/emacs/modules/mm-editing.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to '.config/emacs') 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)) -- cgit v1.2.3