Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change X11 window title after emacs started

Tags:

emacs

x11

elisp

When I start emacs, I can use the --title= option to control the title of the x-window that holds the emacs application. Is it possible to change the title after emacs starts from elisp?

like image 534
David Nehme Avatar asked Feb 25 '10 20:02

David Nehme


2 Answers

M-x set-frame-name NewName RET

and from elisp

(set-frame-name "NewName")
like image 142
Trey Jackson Avatar answered Nov 12 '22 04:11

Trey Jackson


I use

(setq frame-title-format "%b - emacs")

to include the current buffer name in the frame title.

like image 36
George Avatar answered Nov 12 '22 04:11

George