      ;; copy/paste native Emacs keystrokes
      (define-key term-raw-map (kbd "C-k") 'term-send-raw)
      (define-key term-raw-map (kbd "C-y") 'term-send-raw)
-     (define-key term-raw-map (kbd "C-c C-y") 'term-paste)))
+     (define-key term-raw-map (kbd "C-c C-y") 'term-paste)
+
+     ;; ensure that scrolling doesn't break on output
+     ;;(setq term-scroll-show-maximum-output t)
+     (setq term-scroll-to-bottom-on-output t)
+
+     ;; max history (# lines) to keep (0 == keep everything)
+     (setq term-buffer-maximum-size 50000)))
 
 ;; fix Semantic package issue of uncompressing/parsing tons of .eg.gz
 ;; files when editing certain buffers (primarily Emacs-Lisp, but also

;; default font and font size
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-10"))

(setq backup-inhibited t) ;; disable backup
(setq backup-by-copying t) ;; make sure Emacs doesn't break hard links (before doing anything else)
(setq make-backup-files nil) ;; stop creating backup ~ files

;;(tool-bar-mode -1) ;; no toolbar

(setq bookmark-save-flag 1) ; everytime bookmark is changed, automatically save it



(use-package windmove
  ;; move cursor between windows
  :demand
  :bind
  (("C-s-b" . windmove-left)
   ("C-s-f" . windmove-right)
