   (async-shell-command "osascript -e 'tell application \"iTunes\" to set shuffle enabled to true' && osascript -e 'tell application \"iTunes\" to play playlist \"CodiFi\"'")
 )
 
-;; window purpose
-(purpose-mode)
+(when (display-graphic-p)
+  (message "%s" (scroll-bar-mode))
+  ;; hide all windowing adornments
+  (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
+  (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
+  (if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
+  ;; make it yuge
+  (toggle-frame-maximized))

  (message (format-time-string "%H:%M - %a %b %d" (current-time))))
(global-set-key (kbd "C-c d") 'message-current-date)

(require 'server)
(unless (server-running-p)
  (server-start))

(load "multiple_cursors.el")
(put 'narrow-to-region 'disabled nil)


(global-set-key (kbd "C-x C-c") 'kb-quit-emacs)

;; replace Alt-X
(global-unset-key (kbd "M-x"))
(global-set-key (kbd "C-x C-m") 'helm-M-x)
(global-set-key (kbd "C-c C-m") 'helm-M-x)
(global-set-key (kbd "C-x C-f") 'helm-find-files)

;; backward kill character and remap help
(global-set-key (kbd "C-h") 'backward-delete-char)
