+ (defvar sd/variable-font-tuple
+ (cond ((x-list-fonts "Source Sans Pro") '(:font "Source Sans Pro"))
+ ((x-list-fonts "Lucida Grande") '(:font "Lucida Grande"))
+ ((x-list-fonts "Verdana") '(:font "Verdana"))
+ ((x-family-fonts "Sans Serif") '(:family "Sans Serif"))
+ (nil (warn "Cannot find a Sans Serif Font. Install Source Sans Pro.")))
+ "My variable width font available to org-mode files and whatnot."))
+
+ (defun sd/org-color ()
+ (let* ((sd/fixed-font-tuple (list :font sd/fixed-font-family))
+ (base-font-color (face-foreground 'default nil 'default))
+ (background-color (face-background 'default nil 'default))
+ (primary-color (face-foreground 'mode-line nil))
+ (secondary-color (face-background 'secondary-selection nil 'region))
+ (base-height (face-attribute 'default :height))
+ (headline `(:inherit default :weight bold :foreground ,base-font-color)))
+ (custom-theme-set-faces 'ha/org-theme
+ `(org-agenda-structure ((t (:inherit default :height 2.0 :underline nil))))
+ `(org-verbatim ((t (:inherit 'fixed-pitched :foreground "#aef"))))
+ `(org-table ((t (:inherit 'fixed-pitched))))
+ `(org-block ((t (:inherit 'fixed-pitched))))
+ `(org-block-background ((t (:inherit 'fixed-pitched))))
+ `(org-block-begin-line ((t (:inherit 'fixed-pitched))))
+ `(org-block-end-line ((t (:inherit 'fixed-pitched))))
+ `(org-level-8 ((t (,@headline ,@sd/variable-font-tuple))))
+ `(org-level-7 ((t (,@headline ,@sd/variable-font-tuple))))
+ `(org-level-6 ((t (,@headline ,@sd/variable-font-tuple))))
+ `(org-level-5 ((t (,@headline ,@sd/variable-font-tuple))))
+ `(org-level-4 ((t (,@headline ,@sd/variable-font-tuple
+ :height ,(round (* 1.1 base-height))))))
+ `(org-level-3 ((t (,@headline ,@sd/variable-font-tuple
+ :height ,(round (* 1.25 base-height))))))
+ `(org-level-2 ((t (,@headline ,@sd/variable-font-tuple
+ :height ,(round (* 1.5 base-height))))))
+ `(org-level-1 ((t (,@headline ,@sd/variable-font-tuple
+ :height ,(round (* 1.75 base-height))))))
+ `(org-document-title ((t (,@headline ,@sd/variable-font-tuple :height 1.5 :underline nil)))))))
+