  "C-c t e" 'ansi-term
  "C-c t r" 'danylo/run-terminator-here)
 
-;; Always use bash
+;;;###autoload
 (defadvice ansi-term (before force-bash)
+  "Always use bash"
   (interactive (list "/bin/bash")))
-(ad-activate 'ansi-term)
+
+(add-hook 'after-init-hook (lambda  () (ad-activate 'ansi-term)))
 
 ;;;###autoload
 (defun danylo/ansi-term-use-utf8 ()

  (let ((proc (get-buffer-process (current-buffer))))
    (when (processp proc)
      (set-process-query-on-exit-flag proc nil))))
(add-hook 'term-exec-hook 'danylo/set-no-process-query-on-exit)

;; Key bindings

    )
  )

;;;###autoload
(defun danylo/side-window-tmp ()
  (interactive)
  (display-buffer-in-side-window (get-buffer "*Messages*") '((side . right))))
