 ;;; init.el --- my basic emacs setup for sane defaults
 
-;; Copyright 2019 Ronald Valente
+;; Copyright 2020 Ronald Valente
 
 ;; Author: Ronald Valente
-;; Version: 1.1.0
+;; Version: 2.0.0
 ;; Created: 2019-04-04
+;; Update: 2020-07-04
 
 ;;; Commentary:
 

(add-to-list 'default-frame-alist '(ns-appearance . darl))
(setq ns-use-proxy-icon nil)
(setq frame-title-format nil)

;; Better integration with macOS shell
(use-package exec-path-from-shell
  :ensure t
  :config
  (when (memq window-system '(mac ns x))
    (exec-path-from-shell-initialize)
    (exec-path-from-shell-copy-env "GOPATH")))

;; Use spaces instead of tabs
(setq-default indent-tabs-mode nil)

;; Enable UTF-8 Everywhere
(prefer-coding-system 'utf-8-unix)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(set-file-name-coding-system 'utf-8)
(set-clipboard-coding-system 'utf-8)
(set-buffer-file-coding-system 'utf-8)

;; Use macOS Built In Menlo Font
(set-face-attribute 'default nil

                    :width 'normal)
(set-frame-font "Menlo-12" nil t)

;; Better integration with macOS shell
(use-package exec-path-from-shell
  :straight t
  :config
  (when (memq window-system '(mac ns x))
    (exec-path-from-shell-initialize)
    (exec-path-from-shell-copy-env "GOPATH")))

(use-package magit
  :straight t
  :bind (("C-x g" . magit-status)
         ("C-x M-g" . magit-dispatch)))

(use-package projectile
  :straight t
  :config
  (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
  (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
  (projectile-mode +1))
  
(use-package treemacs
  :straight t
  :bind
  (:map global-map
        ("C-<f8>" . treemacs-select-window)
