 (setq inhibit-startup-message t)              ;; hide the startup message
 (setq ring-bell-function 'ignore)             ;; disable the annoying bell
 (setq require-final-newline t)                ;; Newline at the end of the file, always
+(setq-default indent-tabs-mode nil)           ;; Use spaces instead of tabs
 
 ;; Fancy titlebar for macOS
 ;; Removes the dark gray titlebar from macOS window

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

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

(use-package projectile
  :ensure 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
  :ensure t
  :bind
  (:map global-map
        ("C-<f8>" . treemacs-select-window)


;;; Code:

;; Migrate to straight.el to replace package.el
(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

;; Setup stright.el integration with use-package
(straight-use-package 'use-package)

;; Minimal UI
(scroll-bar-mode -1)
