 			helm-ff-search-library-in-sexp        t
 			helm-file-cache-fuzzy-match           t
 			helm-imenu-fuzzy-match                t
-			helm-locate-fuzzy-match               nil   ; not useful
+			helm-locate-fuzzy-match               nil          ; not useful
 			helm-mode-fuzzy-match                 t
 			helm-move-to-line-cycle-in-source     t
 			helm-M-x-fuzzy-match                  t
-			helm-quick-update                     nil   ; ui flashing occurs
+			helm-quick-update                     nil          ; ui flashing occurs
 			helm-recentf-fuzzy-match              t
 			helm-semantic-fuzzy-match             t
-			helm-input-idle-delay                 0.01
-			helm-input-delay                      0.01
+			helm-input-idle-delay                 0.1
+			helm-idle-delay                       0.0
 			helm-buffer-max-length                40
 			helm-scroll-amount                    8)
 		;; set the sources for helm-for-files

(setq inhibit-splash-screen t
      inhibit-startup-echo-area-message t
      inhibit-startup-message t)
(setq gdb-many-windows t)               ; use more complex gdb layout
(mouse-avoidance-mode 'animate)         ; move mouse pointer out of way
(column-number-mode t)                  ; display column/row of cursor in mode-line
(display-time-mode t)                   ; display time in mode-line
(setq compilation-scroll-output "first-error")

(defun replace-prefix (prefix input)
	(replace-regexp-in-string ( concat "^" (regexp-quote prefix)) "" input))

(setq frame-title-format '(             ; set title
		(:eval (if (buffer-file-name)
			 (replace-prefix (abbreviate-file-name default-directory) (abbreviate-file-name buffer-file-name))
					"%b"))
		" %* [" (:eval (abbreviate-file-name default-directory)) "]"))
(setq icon-title-format frame-title-format)

;; tame scrolling
(setq scroll-margin 5                               ; leave 5 lines at top/bottom
		scroll-conservatively 100                     ; scroll # to bring point in view
		scroll-preserve-screen-position 'always       ; move cursor when scrolling
		mouse-wheel-scroll-amount '(3 ((shift) . 9))  ; 3 or 9 line when shift held
		mouse-wheel-follow-mouse 't                   ; scroll window under mouse
		mouse-wheel-progressive-speed nil)            ; don't speed up
(setq-default
		scroll-up-aggressively 0.01
		scroll-down-aggressively 0.01)

	:bind
		("<f8>" . shell-pop)
	)

(use-package guide-key
	:defer 3
	:init
	(setq guide-key/guide-key-sequence '(
		"<SPC>" "C-x" "C-h" "C-w"
		"<f4>" "<f6>" "<f7>" "z" "g" ))
	:config
		(guide-key-mode 1)
	:diminish guide-key-mode)

(use-package magit
  :init
  :config
	; keep me accidently hitting k key due to evil habits
	; this should suffice until magit mapping is figured out
		(define-key magit-mode-map (kbd "<DEL>") 'magit-delete-thing)
		(define-key magit-mode-map "k" nil)
	:bind
		("<f7> g" . magit-status)
	:defer t)
