From 1957e46551dfd1acfcd53fec17fd9630304a11db Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 13 Mar 2022 01:50:20 +0800 Subject: Set appearance config for linux and mac (emacs) --- .emacs.d/lisp/init-appearance.el | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .emacs.d/lisp/init-appearance.el (limited to '.emacs.d/lisp/init-appearance.el') diff --git a/.emacs.d/lisp/init-appearance.el b/.emacs.d/lisp/init-appearance.el new file mode 100644 index 0000000..50b14e7 --- /dev/null +++ b/.emacs.d/lisp/init-appearance.el @@ -0,0 +1,23 @@ +(defun gx/set-appearance--linux () + (set-face-attribute 'default nil :height 130)) + +(defun gx/set-appearance--mac () + (set-face-attribute 'default nil :height 160) + (custom-set-variables + '(initial-frame-alist '((fullscreen . maximized))))) + +(defun gx/set-appearance () + (when (display-graphic-p) + (when *is-a-linux* + (gx/set-appearance--linux)) + (when *is-a-mac* + (gx/set-appearance--mac)))) + +(add-hook 'after-init-hook + (lambda () + (gx/set-appearance))) + +(when (gx/maybe-require-package 'atom-one-dark-theme) + (load-theme 'atom-one-dark t)) + +(provide 'init-appearance) -- cgit v1.2.3