Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.82k stars 253 forks source link

show the current function name at the bottom of the emacs #1393

Closed zhihuiFan closed 3 years ago

zhihuiFan commented 4 years ago

After I run rtags-find-references-at-point, I can get some like below snapshot. I can easily navigate among the different callees. but I can't know the function name of the callee easily. do you think we can add such support? Thanks!

issue https://github.com/Andersbakken/rtags/issues/1288 is about rtags-find-references-at-point as well.

image

zhihuiFan commented 3 years ago

Looks rtags-after-find-file-hook is a great place to hack. it is trigged after I choose a helm candidate.

(defvar c-func-name)
(add-hook 'rtags-after-find-file-hook
          (lambda() (setq c-func-name (c-defun-name))
            ))

then we can add it to mode-line-format list.