Emacs24中打开which-function-mode即可。在.emacs中添加一行:(which-function-mode 1)调整which-function在mode-line中的显示格式:M-x list-faces-display 找到which-function,然后点击后面的样式,点击进去后调整,保存即可。