                   "magit.*:" "\\*Backtrace\\*" "\\*Process List\\*"
                   "\\*Async-" "\\*Native-" "\\*.*output\\*" "\\*helm"
                   "\\*eww\\*" "\\*timer-list\\*" "\\*Disabled Command\\*"
-                  "\\*Man .*\\*"
+                  "\\*Man .*\\*" "\\*wclock\\*"
                   ))))
 
 (defun danylo/set-helm-window-height (orig-fun &rest args)

    "Update Imenu list to reflect the current window's content."
    (when (and (get-buffer-window imenu-list-buffer-name t)
               (not (string= (format "%s" (current-buffer)) imenu-list-buffer-name)))
      (run-with-idle-timer 0.03 nil 'imenu-list-update)))

  ;; Update Imenu automatically after the following functions
  (mapc (lambda (func)
          (advice-add func :after #'danylo/imenu-update))
        '(windmove-do-window-select
          other-window
          delete-window
          quit-window
          save-buffer
          delete-frame))
  (add-hook 'find-file-hook 'danylo/imenu-update))

;; Patches to imenu so as to navigate using the **window** that owns the
;; current Imenu, not the buffer. This way handles multiple windows showing the

(defun danylo/julia-imenu-hooks ()
  (setq imenu-generic-expression
        '(("f(x)   " "^[[:blank:]]*function \\(.*\\).*(.*$" 1)
          ("f(x)   " "^\\([a-zA-Z0-9_\\.!]*?\\)\s*(.*?).*=.*$" 1)
          ("@      " "^[[:blank:]]*macro \\(.*\\).*(.*$" 1)
          ("struct " "^[^#]*\s+struct\s+\\(.*?\\)$" 1)
          ("struct " "^struct\s+\\(.*?\\)$" 1)
