[英]Change X11 window title after emacs started
When I start emacs, I can use the --title= option to control the title of the x-window that holds the emacs application. 当我启动emacs时,我可以使用--title =选项来控制保存emacs应用程序的x窗口的标题。 Is it possible to change the title after emacs starts from elisp? emacs从elisp开始后是否可以更改标题?
M-x set-frame-name NewName RET
从elisp
(set-frame-name "NewName")
I use 我用
(setq frame-title-format "%b - emacs")
to include the current buffer name in the frame title. 在帧标题中包含当前缓冲区名称。
The following worked for me (GNU EMACS 24.3.1 on cygwin multiwindow X11): 以下内容适用于我(GNU EMACS 24.3.1 on cygwin multiwindow X11):
(set-frame-parameter frame 'title arg)
which I wrapped in an interactive function 我把它包裹在一个互动功能中
(defun set-frame-title/ag (title &optional frame)
"set frame TITLE of &optional FRAME defaults to (selected-frame)
aka C11 window titlebar name"
(interactive "sframe title: ")
(set-frame-parameter frame 'title title)
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.