Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs: How to show the current directory in the frame bar?

When opening a file in Emacs on Mac OS X, the file's path is displayed in the window bar (this bar at the upper end of the window which contains the three buttons for quitting, maximizing and minimizing). If I have a shell open (C-c s), it only displays *shell* -- not very useful, especially if there are multiple shells open. How can I display the path of the current working directory in the window bar? So, for example, /ssh:[email protected].

like image 351
Marius Hofert Avatar asked Jan 20 '12 17:01

Marius Hofert


1 Answers

Try this:

(setq frame-title-format '((:eval default-directory)))
like image 50
huaiyuan Avatar answered Nov 09 '22 23:11

huaiyuan