 	      (define-key term-raw-map (kbd "C-<left>") 'nil)
 	      (define-key term-raw-map (kbd "C-<right>") 'nil)))
 
+  ;; make sure window movement keys are not captured by GUD's comint
+  (add-hook 'comint-mode-hook
+	    (lambda ()
+	      (define-key comint-mode-map (kbd "C-<up>") 'nil)
+	      (define-key comint-mode-map (kbd "C-<down>") 'nil)
+	      (define-key comint-mode-map (kbd "C-<left>") 'nil)
+	      (define-key comint-mode-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
   ;; the GDB buffer, for instance)

     ("C-<right>" . windmove-right)
     ("C-<up>" . windmove-up)
     ("C-<down>" . windmove-down)))

  (use-package buffer-menu
    ;; show all current buffers
    :init

  (menu-bar-mode -1)  ;; disable menubar
  (tool-bar-mode -1) ;; disable toolbar
  (toggle-scroll-bar -1) ;; disable scrollbar

  ;; Comint unset C-up C-down
  (global-unset-key (kbd "C-<up>"))
  (global-unset-key (kbd "C-<down>"))


  ;; MELPA
  (require 'package)
