           try-complete-file-name))
   )
 
+(defun setup-swoop ()
+  (require 'swoop)
+  (global-set-key (kbd "C-o")   'swoop)
+  (global-set-key (kbd "C-M-o") 'swoop-multi)
+  (global-set-key (kbd "M-o")   'swoop-pcre-regexp)
+  (global-set-key (kbd "C-S-o") 'swoop-back-to-last-position)
+
+  ;; t:   Show swoop lines within the current window
+  ;; nil: Show swoop lines in another window
+  (setq swoop-window-split-current-window: nil)
+  ;; Determine the split direction 'split-window-horizontally or 'split-window-vertically
+  (setq swoop-window-split-direction: 'split-window-vertically)
+
+  ;; Change whole buffer's font size (t or nil)
+  (setq swoop-font-size-change: t)
+  ;; Font size (e.g. 0.8, 1.0, 1.5, 80, 135)
+  (setq swoop-font-size: 0.9)
+  ;;
+  ;; Enable around target lines magnifier (t or nil)
+  (setq swoop-use-target-magnifier: t)
+  ;; Magnify area from target line
+  (setq swoop-use-target-magnifier-around: 10)
+  ;; Font size for magnify area (e.g. 0.8, 1.0, 1.5, 80, 135)
+  (setq swoop-use-target-magnifier-size: 1.2)
+  )
+
 (defun my-after-init-hook ()
   (load custom-file)
 

(defvar macosx-p (string-match "darwin" (symbol-name system-type)))
(defvar windows-p (string-match "windows-nt" (symbol-name system-type)))
(defvar linux-p (string-match "gnu/linux" (symbol-name system-type)))


(defun setup-helm ()

  (global-set-key (kbd "C-M-<down>") 'forward-list)
  (global-set-key (kbd "C-M-<up>") 'backward-list)
  (global-set-key (kbd "M-<return>") 'hippie-expand)
  (global-set-key (kbd "C-M-<right>") 'jump-to-white)
  (global-set-key (kbd "C-<right>") 'forward-word)
  (global-set-key (kbd "C-<left>") 'backward-word)

