aboutsummaryrefslogtreecommitdiff
path: root/shoshimacs.el
diff options
context:
space:
mode:
authorshoshin <shoshin@cicadas.surf>2022-10-12 17:36:45 -0500
committershoshin <shoshin@cicadas.surf>2022-10-12 17:36:45 -0500
commit560513c002952232d41897aa6a47c9e845b93a24 (patch)
treebf725abdf6471f97ca60171b1a35346182250883 /shoshimacs.el
parent88f8e0f139b0c0d81c834501dccde04a0032d55d (diff)
Clean: replace my-hostname with system-name built in
Diffstat (limited to 'shoshimacs.el')
-rw-r--r--shoshimacs.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/shoshimacs.el b/shoshimacs.el
index 10d107f..ae46dbd 100644
--- a/shoshimacs.el
+++ b/shoshimacs.el
@@ -7,10 +7,6 @@
(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-config* "~/projects/shoshimacs/shoshimacs.org"
"Path to my main configuration file.")
@@ -24,6 +20,10 @@
(interactive)
(org-babel-load-file *my-config*))
+(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 ef-themes)
"List of themes to install when loading shoshimacs config.")
@@ -252,7 +252,7 @@
(package-install 'darkroom)
-(let ((size (if (or (equal (my-hostname) "zebes") (equal (my-hostname) "ridley")) 14 12)))
+(let ((size (if (or (equal (system-name) "zebes") (equal (system-name) "ridley")) 14 12)))
(set-frame-font (format "Victor Mono-%s" size)))
(global-hl-line-mode t)