-;; Time-stamp: <2014-05-09 17:34:01 kmodi>
+;; Time-stamp: <2014-05-20 11:17:57 kmodi>
 
 ;; KEY BINDINGS
 


(when (boundp 'setup-dired-loaded)
  ;; Change the default `C-x C-d` key binding from `ido-list-directory'
  (global-set-key (kbd "C-x C-d") 'dired-single-magic-buffer)
  ;; Change the default `C-x C-j` key binding from  `dired-jump'
  ;; dired magic buffer is now used instead of the default dired for the same action
  (global-set-key (kbd "C-x C-j")
                  (lambda()
                    (interactive)
                    (dired-single-magic-buffer default-directory)))
  )

(define-key modi-map (kbd "y")    'bury-buffer) ;; C-x m y

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(when (boundp 'setup-helm-loaded)
  (global-set-key (kbd "M-i") 'helm-swoop)
  (global-set-key (kbd "M-I") 'helm-multi-swoop-all)
  ;; (global-set-key (kbd "M-I") 'helm-swoop-back-to-last-point)
  ;; When doing isearch, hand the word over to helm-swoop
  (define-key isearch-mode-map (kbd "M-i") 'helm-swoop-from-isearch))
