 
        ;; max history (# lines) to keep (0 == keep everything)
        (setq term-buffer-maximum-size 50000)))
+  ;; make sure window movement keys are not captured by terminal
+  (add-hook 'term-mode-hook
+	    (lambda ()
+	      (define-key term-raw-map (kbd "C-<up>") 'nil)
+	      (define-key term-raw-map (kbd "C-<down>") 'nil)
+	      (define-key term-raw-map (kbd "C-<left>") 'nil)
+	      (define-key term-raw-map (kbd "C-<right>") 'nil)))
 
   ;; fix Semantic package issue of uncompressing/parsing tons of .eg.gz
   ;; files when editing certain buffers (primarily Emacs-Lisp, but also

(let ((gc-cons-threshold most-positive-fixnum)
      (file-name-handler-alist nil))
  ;; better garbage collection
  ;; http://bling.github.io/blog/2016/01/18/why-are-you-changing-gc-cons-threshold/
  (defun my-minibuffer-setup-hook ()
    (setq gc-cons-threshold most-positive-fixnum))

  (defun my-minibuffer-exit-hook ()
    (setq gc-cons-threshold 800000))

  (add-hook 'minibuffer-setup-hook #'my-minibuffer-setup-hook)
  (add-hook 'minibuffer-exit-hook #'my-minibuffer-exit-hook)

  ;; sensible GUI
  (menu-bar-mode -1)  ;; disable menubar
  (tool-bar-mode -1) ;; disable toolbar

    (set-face-attribute 'mode-line nil :box nil)
    (set-face-attribute 'mode-line-inactive nil :box nil))

  ;; (use-package zenburn-theme
  ;;   ;; the best theme there is!
  ;;   :ensure t
  ;;   :if window-system ;; load only when GUI
  ;;   :config
  ;;   (load-theme 'zenburn t)
  ;;   ;; stylize the mode line
  ;;   (set-face-attribute 'mode-line nil :box nil)
  ;;   (set-face-attribute 'mode-line-inactive nil :box nil))

  (use-package dired+
    ;; advanced Dired functionality
