diff options
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r-- | .emacs.d/lisp/init-appearance.el | 23 | ||||
-rw-r--r-- | .emacs.d/lisp/init-misc.el | 7 |
2 files changed, 23 insertions, 7 deletions
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) diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index 184626c..74037ca 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -47,13 +47,6 @@ (gx/maybe-require-package 'rg) (gx/maybe-require-package 'esup) -;; appearance -(gx/maybe-require-package 'atom-one-dark-theme) -(add-hook 'after-init-hook - (lambda () - (load-theme 'atom-one-dark t) - (set-face-attribute 'default nil :height 130))) - (when (gx/maybe-require-package 'which-key) (add-hook 'after-init-hook 'which-key-mode)) |