 ;; 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)

(setq org-refile-targets '((org-agenda-files . (:maxlevel . 5))))
(setq org-enforce-todo-dependencies t)
(setq org-agenda-dim-blocked-tasks 'invisible)
(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")

(define-key global-map "\C-cr" 'org-remember)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)

;; man page hooks
(add-hook 'Man-mode-hook 'delete-other-windows)

;; dumb jump
(setq dumb-jump-default-project "~/src")
