 (load "my_func.el")
 (load "init_packages.el")
 
-;; hide toolbar
-(if (fboundp tool-bar-mode) (tool-bar-mode -1))
-(if (fboundp menu-bar-mode) (menu-bar-mode -1))
+;; window purpose
+;; (purpose-mode) ;; causing all sorts of weird issues with find file and Help buffer
 
 ;; standard shit
 (setq-default indent-tabs-mode nil)

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

;; replace Alt-X
(global-set-key (kbd "C-x C-m") 'execute-extended-command)
(global-set-key (kbd "C-c C-m") 'execute-extended-command)
(global-unset-key (kbd "M-x"))

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

  (async-shell-command "osascript -e 'tell application \"iTunes\" to set shuffle enabled to true' && osascript -e 'tell application \"iTunes\" to play playlist \"CodiFi\"'")
)

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