     (define-key map (kbd "C-c C-k") 'pjones:term-line-mode)
     (define-key map (kbd "C-c C-c") 'pjones:term-send-control-c)
     (define-key map (kbd "C-c C-r") 'pjones:term-rename)
-    (define-key map (kbd "C-q")     'pjones:term-quoted-insert)
-    (define-key map (kbd "C-u")     'universal-argument)
+    (define-key map (kbd "C-c M-x") 'helm-M-x)
+    (define-key map (kbd "C-c C-q") 'pjones:term-quoted-insert)
+    (define-key map (kbd "C-c C-u") 'universal-argument)
     (define-key map (kbd "C-y")     'term-paste)
     (define-key map (kbd "C-z")     pjones:z-map)))
 
 (advice-add 'term-handle-exit :after 'pjones:remove-dead-term)
 (add-hook 'term-mode-hook 'pjones:term-mode-hook)
 
-;; Local Variables:
-;; byte-compile-warnings: (not noruntime)
-;; End:
+;;; term-conf.el ends here

    (goto-char (process-mark proc))))

(defun pjones:term-send-control-c ()
  "Send a C-c to the terminal."
  (interactive)
  (term-send-raw-string (make-string 1 ?\C-c)))

(defun pjones:remove-dead-term (&rest args)
  "Clean up after a dead terminal."
  (let ((buffer (current-buffer)))
    (kill-buffer buffer)))

(defun pjones:term-quoted-insert (count)
  "Read next input character and send it directly to the terminal."
  (interactive "*p")
  (let ((char (read-char)))
    (term-send-raw-string (make-string count char))))

(defun pjones:term-mode-hook ()
  "Hook run after a terminal starts"

  ;; Some variables that term-mode doesn't initialize but uses :(
  (setq term-ansi-at-dir default-directory
        term-ansi-at-host (system-name)
        term-ansi-at-user (user-real-login-name))

  ;; Variables for configuration:
  (setq term-prompt-regexp "❯ "
        mode-line-format '("  " mode-line-buffer-identification
                           "    [term" mode-line-process "]"))

  ;; Keep things Emacs-like:
  (term-set-escape-char ?\C-x)

;;; term-conf.el -- Settings for term-mode.
;;; Commentary:
;;; Code:
(eval-when-compile
  (require 'term))

;; Dependencies:
(require 'projectile)
(require 'elscreen)

;; Remove some warnings:
(defvar pjones:z-map nil "Defined in keys.el.")

;; Settings for term-mode:
(custom-set-variables
