   :init
   (progn
     (setq multi-term-program "/bin/zsh")
-    (setq term-unbind-key-list '("C-SPC" "C-z" "C-x" "C-c" "C-h" "C-y" "M-x" "M-:")))
-
-  :config
-  (progn
-     (add-to-list 'term-bind-key-alist '("C-c n" . multi-term-next))
-     (add-to-list 'term-bind-key-alist '("C-c p" . multi-term-prev))))
+    (setq term-unbind-key-list '("C-x" "C-h" "M-x" "M-:")))
+
+  :config
+  (progn
+    (add-to-list 'term-bind-key-alist '("C-c n" . multi-term-next))
+    (add-to-list 'term-bind-key-alist '("C-c p" . multi-term-prev))))
 
 (defun last-term-buffer (l)
   "Return most recently used term buffer."
   (when l
     (if (eq 'term-mode (with-current-buffer (car l) major-mode))
 	(car l)(last-term-buffer (cdr l)))))
-
-;; (defun get-term()
-;;   "Switch to the term buffer last used, or create a new one if non exists, or if the current buffer is already a term"
-;;   (interactive)
-;;   (let ((b (last-term-buffer (buffer-list))))
-;;     (if (or (not b) (eq 'term-mode major-mode))
-;; 	(multi-term)
-;;       (switch-to-buffer b))))
 
 (defun get-term()
   "Switch to the term buffer last used, or create a new one if non exists, or if the current buffer is already a term"

	xsel-output )))
  ;; Attach callbacks to hooks
  (setq interprogram-cut-function 'xsel-cut-function)

  ;; Idea from
  ;; http://shreevatsa.wordpress.com/2006/10/22/emacs-copypaste-and-x/


;;;============================================================================
; Additional Hacks

;;-----------------------------------------------------------------------------
;; copy file path
(defun clip-file-path-from-project-root ()
  "Put the current file name on the clipboard"
  (interactive)
  (let ((filename (if (equal major-mode 'dired-mode)
                      (file-name-directory default-directory)
                    (buffer-file-name)))
        (root (condition-case nil
                  (projectile-project-root)
                (error ""))))
    (when filename
      (kill-new (replace-regexp-in-string (concat "^" (regexp-quote root)) "" filename)))))

(defun clip-file-path-full ()
  "Put the current file name on the clipboard"
  (interactive)
  (let ((filename (if (equal major-mode 'dired-mode)
                      (file-name-directory default-directory)
                    (buffer-file-name))))
    (when filename
      (kill-new filename))))

;;;----------------------------------------------------------------------------
;;; Enable copy-paste with X clipboard (need xsel)
