How to Show Filename in Title Bar in Emacs

(0 votes, average 0 out of 5)

Adding the following snippet into your .emacs file (typically located in your home directory) will cause the filename of the current buffer to appear in the title bar.  This is a quick fix that can make managing multiple emacs windows much easier.

 

;; Show filename in title bar
(setq frame-title-format "%b - Emacs")

 

Partner Links:
Last Updated on Monday, 13 February 2012 13:21  
Related Articles

» How to Configure a Program to Run at Startup in Windows 7

If you want to configure a program to always run when Windows starts, there are a few ways to do it.  The easiest way (in this author's opinion) is to use the Startup folder as shown in the instructions below.First, create a shortcut for the program you wish to start.  If there is an existing shortcut on your desktop, you can right click on it and copy it.  Otherwise, navigate to the .exe file, right click, and press "Create shortcut.".  You will see the shortcut created in...

» Customizing File Association in Emacs (based on file extension)

Occassionally it can be useful to have emacs automatically use a particular syntax highlighter based on file extension.  Typically this is useful when you want to use non-stnadard file extensions in your own environment.  You can get it to work by adding the following to your .emacs file (typically located in your home directory):;; Use perl syntax highlighter for .foo files.(setq auto-mode-alist (cons '(".*\.foo" . cperl-mode) auto-mode-alist))The above code would use the cperl...

» Troubleshooting CIFS Sign In Issue on LG Blu-ray Players

Most LG Blu-ray players provdie a useful interface for streaming media off of a home network.  The interface is sometimes called 'Home Link"; in other players it's simply under Movie or Music.  In both cases, shared folders under a network computer may not actually show up, and when the network computer is selected, a "CIFS Sign In" prompt will show up.  CIFS is a standard for remotely sharing files, but the sign in prompt is a sympton of another issue which can be fixed....