diff options
author | Grant Shangreaux <grant@unabridgedsoftware.com> | 2022-08-22 11:38:29 -0500 |
---|---|---|
committer | Grant Shangreaux <grant@unabridgedsoftware.com> | 2022-08-22 11:38:29 -0500 |
commit | 79fd628199bb536fc0687dc82327229a03c0da1b (patch) | |
tree | 1a6848711323929bc0d41f32d69ffb7e3254d877 /shoshimacs.el | |
parent | 1a0b623147bda3621241e74670545444c770f883 (diff) |
Fix: hostname issue and turn off some [ui] elements
Diffstat (limited to 'shoshimacs.el')
-rw-r--r-- | shoshimacs.el | 14 |
1 files changed, 9 insertions, 5 deletions
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) |