 ;; make Emacs use the $PATH set up by the user's shell
 (when (memq window-system '(mac ns))
   (exec-path-from-shell-initialize))
+
+;; don't wrap long lines
+
+;; set left and right margins for every window
+(add-hook 'window-configuration-change-hook
+          (lambda ()
+            (set-window-margins (car (get-buffer-window-list (current-buffer) nil t)) 2 2)
+            (setq truncate-lines t)))
 
 ;; mode line ;;
 

;; (load-theme 'base16-atelier-heath-light t)
;; (load-theme 'base16-default-light t)
;; (load-theme 'base16-eighties t)

;; color-theme ;;


(evil-define-key 'normal neotree-mode-map (kbd "SPC") 'neotree-enter)
(evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter)

(evil-define-key 'normal neotree-mode-map (kbd "i") 'neotree-enter-horizontal-split)
(evil-define-key 'normal neotree-mode-map (kbd "s") 'neotree-enter-vertical-split)
(evil-define-key 'normal neotree-mode-map (kbd "v") 'neotree-enter-vertical-split)
(evil-define-key 'normal neotree-mode-map (kbd "q") 'neotree-hide)
(evil-define-key 'normal neotree-mode-map (kbd "h") 'neotree-hidden-file-toggle)
