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

» Redirect all output in shell script to a file

Redirecting a single command in a script to a file is straight-forward using the > syntax. For example, to redirect all STDERR output:1echo "hello, world" 2>> /tmp/filename.logTo redirect all lines of a Bash script to a file, add a scope around all of the lines and then redirect the scope to a file. For example:123456(echo "this is line 1 of my script"cat /proc/cpuinfodmesgecho "this is the end of my script") 2>> /tmp/filename.logThis allows you to capture all output of a script...

» 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...

» How to Add or Switch a Display in Windows 7

In order to connect a laptop or desktop to a television (or use a two-monitor display), Windows 7 must be configured to output to a different source or multiple sources.  Here's how to do it:Connect your computer and display device(s) to be hooked up.  Open the Start menu and navigate to the Control Panel.If both display devices are connected, you should see two displays show in the Display window.  Activate both monitors and change if you would like the displays mirrored (both...