linux emacs-28.1 标题名的问题

我的环境是 arch-linux, bspwm, emacs-28.1. 最近把emacs升级到 28.1 版本后,总发现 标题栏 会 自动改变。 但是 window下面是没有这个问题的,因为window 下面 没有切换窗口的概念。

首先我的配置是

然后在emacs刚打开的时候:

然后我切换一下窗口后就变成这样了:

我现在还不清楚是 bspwm 的问题 还是 emacs的问题, 如果是在 emacs 里面 怎么获取 title 的值呢?

我之前使用 27 时标题一直是 emacs

到了28 后,标题就是 buffer 名了

和变量 frame-title-format 有关,可以参考 mode-line-format 设置一下

试试设置下 icon-title-format

1 个赞

有效果,什么时候变成 icon-title-format, 这 也不知道啊

GUI下两个都要设置。28.1 中默认值变了

Default values of 'frame-title-format' and 'icon-title-format' have changed.
These variables are used to display the title bar of visible frames
and the title bar of an iconified frame.  They now show the name of
the current buffer and the text "GNU Emacs" instead of the value of
'invocation-name'.  To get the old behavior back, add the following to
your init file:

    (setq frame-title-format '(multiple-frames "%b"
                              ("" invocation-name "@" system-name)))
3 个赞