From 79fd628199bb536fc0687dc82327229a03c0da1b Mon Sep 17 00:00:00 2001 From: Grant Shangreaux Date: Mon, 22 Aug 2022 11:38:29 -0500 Subject: Fix: hostname issue and turn off some [ui] elements --- shoshimacs.el | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'shoshimacs.el') diff --git a/shoshimacs.el b/shoshimacs.el index 43d3da9..6f34371 100644 --- a/shoshimacs.el +++ b/shoshimacs.el @@ -7,6 +7,11 @@ (setq custom-file my-custom-file) (load custom-file)) + +(defun my-hostname () + "Helper function to determine on which host Emacs is starting." + (string-trim (with-temp-buffer (shell-command "hostname" t ) (buffer-string)))) + (defvar my-themes-to-install '(cyberpunk-theme dracula-theme nano-theme) "List of themes to install when loading shoshimacs config.") @@ -201,14 +206,13 @@ ;;; User Interface (when (display-graphic-p) (scroll-bar-mode -1) - (fringe-mode '(8 . 0))) - -(tab-bar-mode t) -(display-battery-mode t) + (fringe-mode '(8 . 0)) + (menu-bar-mode -1) + (tool-bar-mode -1)) (package-install 'darkroom) -(let ((size (if (equal hostname "zebes") 18 12))) +(let ((size (if (or (equal (my-hostname) "zebes") (equal (my-hostname) "ridley")) 16 12))) (set-frame-font (format "Victor Mono-%s" size))) (global-hl-line-mode t) -- cgit v1.2.3