当我打开Emacs时,我希望默认启用which-function-mode。我已经在我的.emacs文件中添加了以下行。
(setq which-func-mode t)
(setq which-function-mode t)
当我打开一个.cpp文件并导航到函数体时,我在底部状态栏中没有看到函数名,就像应该看到的那样。如果我运行M-x which-function-mode,消息是“Which-Function mode disabled”,因此看起来我的.emacs文件中的行有效,但不完全工作。
我是设置了错误的内容在我的.emacs文件中吗?还是其他什么地方出了问题?