 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Behavior
 ;;
-(require 'popwin)
-(popwin-mode 1)
+(use-package popwin
+  :ensure t
+  :config
+  (popwin-mode 1)
+)
+
 ;; custom shortcuts
 (global-set-key (kbd "C-c -") 'split-window-vertically)
 (global-set-key (kbd "C-c |") 'split-window-horizontally)

(setq shift-select-mode nil)
(setq x-alt-keysym 'meta)

(require 'nav)
(nav-disable-overeager-window-splitting)

; highlight the current line
(global-hl-line-mode t)

; tabs
(setq tabbar-ruler-global-tabbar t) ; If you want tabbar
(require 'tabbar-ruler)
(tabbar-ruler-group-by-projectile-project)

(mapc
  (lambda (face)

  '("" invocation-name " - " (:eval (if (buffer-file-name)
                                       (abbreviate-file-name (buffer-file-name))
                                     "%b"))))

(use-package highlight-indentation
  :ensure t
  :init
  (setq highlight-indentation-offset 2))

(use-package powerline
  :ensure t
  :config
  (progn
    (powerline-default-theme))
)

(use-package leuven-theme
  :ensure t
  :config
  (load-theme 'leuven t))

(setq show-trailing-whitespace t)
(setq-default show-trailing-whitespace t)
