Fix cycle-font

This commit is contained in:
Henrik Lissner 2015-01-21 00:42:09 -05:00
parent bf9ef826c5
commit 4e32b006b1
3 changed files with 14 additions and 15 deletions

View file

@ -2,18 +2,9 @@
;;;; Load Theme ;;;;;;;;;;;;;;;;;;;;;;;;
(when window-system
;; No transparency!
(set-frame-parameter nil 'alpha '(94 70))
(let* ((font (nth 0 *fonts))
(font-name (nth 0 font))
(font-size (nth 1 font))
(font-aa (nth 2 font)))
(unless (member font-name (font-family-list))
(error "Font %s isn't installed" font-name))
(let ((font-str (concat font-name "-" (number-to-string font-size))))
(setq ns-antialias-text font-aa)
(add-to-list 'default-frame-alist `(font . ,font-str))
(add-to-list 'initial-frame-alist `(font . ,font-str)))))
;; Load font
(cycle-font 0))
(add-to-list 'custom-theme-load-path my-themes-dir)
(load-dark-theme)