aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-appearance.el
blob: 50b14e79058ab053377537d5accce5c03d0611b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)