-;; Time-stamp: <2015-07-06 09:09:17 kmodi>
+;; Time-stamp: <2015-07-15 09:33:26 kmodi>
 
 ;; Imenu-list
 ;; https://github.com/bmag/imenu-list

      (modi/imenu-list-hide))
    (bind-key "C-<return>"
              #'modi/imenu-list-goto-entry-and-hide
              imenu-list-major-mode-map)))


(provide 'setup-imenu-list)

      (switch-to-buffer-other-window imenu-list-buffer-name)
      (quit-window))

    (defun modi/imenu-list-visible-p ()
      "Returns `t' if the `imenu-list' buffer is visible."
      (catch 'break
        (dolist (win (window-list))
          (when (string= imenu-list-buffer-name (buffer-name (window-buffer win)))
            (throw 'break t)))))

    (defun modi/imenu-list-display-toggle (noselect)
      "Toggle the display of Imenu-list buffer.

If NOSELECT is non-nil, do not select the imenu-list buffer."
      (interactive "P")
      (if (modi/imenu-list-visible-p)
          (modi/imenu-list-hide)
        (if noselect
            (imenu-list-noselect)
          (imenu-list))))

    (defun modi/imenu-list-goto-entry-and-hide ()
      "Execute `imenu-list-goto-entry' and hide the imenu-list buffer."
