From e35560482b37a57e3194e4887b3f0eff533381d8 Mon Sep 17 00:00:00 2001 From: 8HNHoFtE <8HNHoFtE@ares.local> Date: Thu, 2 May 2019 19:40:34 +0200 Subject: [PATCH] Platform specific GUI settings #4 --- bundle/darwin-customs.el | 6 ++++++ bundle/windows-customs.el | 5 +++++ init.el | 7 +++---- 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 bundle/darwin-customs.el create mode 100644 bundle/windows-customs.el diff --git a/bundle/darwin-customs.el b/bundle/darwin-customs.el new file mode 100644 index 00000000..2c603f2c --- /dev/null +++ b/bundle/darwin-customs.el @@ -0,0 +1,6 @@ +(if (eq system-type 'darwin) + (add-to-list 'default-frame-alist '(font . "Hack Nerd Font Mono-13")) + (add-to-list 'default-frame-alist '(height . 100)) + (add-to-list 'default-frame-alist '(width . 80)) + (global-hl-line-mode 'global-hl-line-highlight)) +(provide 'darwin-customs) diff --git a/bundle/windows-customs.el b/bundle/windows-customs.el new file mode 100644 index 00000000..8655bd31 --- /dev/null +++ b/bundle/windows-customs.el @@ -0,0 +1,5 @@ +(if (eq system-type 'windows-nt) + (add-to-list 'default-frame-alist '(font . "Hack NF-10:bold")) + (add-to-list 'default-frame-alist '(height . 60)) + (add-to-list 'default-frame-alist '(width . 80))) +(provide 'windows-customs) diff --git a/init.el b/init.el index c9df57f2..141673e5 100644 --- a/init.el +++ b/init.el @@ -33,10 +33,9 @@ (menu-bar-mode -1) (tool-bar-mode -1) (scroll-bar-mode -1) -(global-hl-line-mode 'global-hl-line-highlight) (blink-cursor-mode -1) -(add-to-list 'default-frame-alist '(font . "Hack NF-10:bold")) -(add-to-list 'default-frame-alist '(height . 60)) -(add-to-list 'default-frame-alist '(width . 80)) (setq visible-bell 1) (prefer-coding-system 'utf-8) + +(require 'windows-customs) +(require 'darwin-customs)