Function: ghostel-imenu-setup

ghostel-imenu-setup is a natively compiled function defined in ghostel-shell.el.

Signature

(ghostel-imenu-setup)

Documentation

Wire OSC 133 prompts as imenu entries in the current buffer.

Prompt labels include the command and, when known, the command's working directory.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-shell.el
(defun ghostel-imenu-setup ()
  "Wire OSC 133 prompts as imenu entries in the current buffer.
Prompt labels include the command and, when known, the command's
working directory."
  (setq-local imenu-create-index-function #'ghostel--imenu-create-index)
  (setq-local imenu-default-goto-function #'ghostel--imenu-goto)
  (add-hook 'ghostel-command-start-functions
            #'ghostel--imenu-stamp-cwd nil t))