 	(insert (concat "\n\n" mu4e-compose-signature))))))
 (add-hook 'mu4e-compose-mode-hook 'danylo/insert-mu4e-signature)
 
-;;;###autoload
-(defun danylo/refresh-mu4e-alert-mode-line ()
-  "Show new mail in the mode line."
-  (interactive)
-  (mu4e-update-mail-and-index t)
-  (mu4e-alert-enable-mode-line-display))
-
-(defvar danylo/mu4e-alert-started nil
-  "Indicator if mu4e-alert indicator started")
-
 (use-package mu4e-alert
   ;; https://github.com/iqbalansari/mu4e-alert
   ;; Desktop notifications and modeline display for mu4e
-  :ensure t
-  :after mu4e
-  :init
-  ;; Enable mu4e-alert display after mu4e is started
-  (add-hook 'mu4e-main-mode-hook
-	    (lambda ()
-	      (unless danylo/mu4e-alert-started
-		(mu4e-alert-enable-mode-line-display)
-		(run-with-timer 0 (* 60 5) 'danylo/refresh-mu4e-alert-mode-line)
-		(setq danylo/mu4e-alert-started t)))))
+  :after mu4e)
 
 ;;; ..:: Git ::..
 

;; Clickable URLs
(add-hook 'term-mode-hook (lambda () (goto-address-mode)))

;; Make that typing exit in ansi-term (which exits the shell) also closes
;; the buffer
(defadvice term-sentinel (around my-advice-term-sentinel (proc msg))
  (if (memq (process-status proc)
	    '(signal exit))
      (let ((buffer (process-buffer proc)))
	ad-do-it
	(kill-buffer buffer))
    ad-do-it))
(ad-activate 'term-sentinel)

;;;###autoload
(defun danylo/set-no-process-query-on-exit ()

    )
  )

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