 ;; styling
-(tool-bar-mode -1)
-(scroll-bar-mode -1)
 (menu-bar-mode -1)
 (setq inhibit-startup-screen t)
 (setq frame-title-format "%b ; %f")
 (setq-default fill-column 80)
-(set-face-attribute 'default t :font "Inconsolata-12")
+
+;; compat hack when built with no-x
+(when (fboundp 'tool-bar-mode)
+  (tool-bar-mode -1)
+  (scroll-bar-mode -1)
+  (set-face-attribute 'default t :font "Inconsolata-12"))
+
 (set-face-attribute 'vertical-border nil :foreground "#b0b0b0")
 (add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
 (load-theme 'base16-default t)


(desktop-save-mode 1)
(server-start)

(require 'misc)


(setq org-refile-targets '((org-agenda-files . (:maxlevel . 5))))
(setq org-enforce-todo-dependencies t)
(setq org-agenda-dim-blocked-tasks 'invisible)
;; wtf
(defun my-after-load-org ()
  (add-to-list 'org-modules 'org-habit))
(eval-after-load "org" '(my-after-load-org))
(setq org-capture-templates
    '(("t" "Todo" entry (file+headline "~/org/todo.org" "Tasks") "* TODO %?\n")
      ("m" "Meditation log" item (file+headline "~/org/pub/meditation.org" "Practice Log") "- %t: %?\n")
