From b7dbcc0d291ea380ff02ae22a0d94fbc44d4fbfe Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Thu, 31 Aug 2023 13:32:52 -0600 Subject: [PATCH] [Emacs] Automatically enable kat mode when user is kat --- dotfiles/emacs.d/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 3c90caf3..01692a62 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -70,7 +70,8 @@ (org-babel-load-file (concat (file-name-directory load-file-name) "README.org"))) -(when imalison:kat-mode +(when (or (equal (s-trim (shell-command-to-string "whoami")) "kat") + imalison:kat-mode) (let ((debug-on-error t)) (org-babel-load-file (concat (file-name-directory load-file-name) "kat-mode.org"))))