 	 (if (not buffer-read-only) (toggle-read-only)))
   (defun danylo/switch-to-term-char-mode () (interactive) (term-char-mode)
 	 (if (buffer-read-only) (toggle-read-only)))
+  (define-key term-raw-map (kbd "C-c t c") 'danylo/switch-to-term-char-mode)
+  (define-key term-raw-map (kbd "C-c t l") 'danylo/switch-to-term-line-mode)
   (define-key term-mode-map (kbd "C-c t c") 'danylo/switch-to-term-char-mode)
-  (define-key term-raw-map (kbd "C-c t l") 'danylo/switch-to-term-line-mode)
+  (define-key term-mode-map (kbd "C-c t l") 'danylo/switch-to-term-line-mode)
   ;; Copy/paste native Emacs keystrokes
   (define-key term-raw-map (kbd "C-k") 'term-send-raw)
   (define-key term-raw-map (kbd "C-y") 'term-paste)

;;;###autoload
(defun danylo/gc-message ()
  "Garbage collection message."
  (when garbage-collection-messages
    (let ((message-log-max nil))
      (message "%s Collecting garbage"
	       (propertize (all-the-icons-faicon "trash-o")

	 :map helm-map
	 ("<tab>" . helm-execute-persistent-action))
  :init (setq helm-display-buffer-default-height
	      danylo/num-completion-candidates
	      helm-mode-line-string ""
	      helm-comp-read-mode-line ""
	      helm-buffer-max-length 30
	      helm-buffers-truncate-lines nil
	      helm-split-window-in-side-p t
	      helm-move-to-line-cycle-in-source t
	      helm-echo-input-in-header-line nil
	      helm-display-header-line nil
