Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner


















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article

   LinuxPlanet / Previews



Emacs' GNU Look: A Sneak Preview of Emacs 21.0
A Superficial Rundown

Michael Hall
Monday, December 18, 2000 11:01:24 AM

On starting the program up, I immediately understood where the rumors of Emacs' GNOMEification had come from: where the program used to present a very sparse, black and white window with simple, unadorned, menus it now has a toolbar providing a set of basic buttons familiar to anyone who's ever used GNOME or a GTK app. The splash screen, I also noticed, showed something besides fixed-width fonts for a change: Emacs has support for scaled, proportional fonts.

One of the changes to Emacs 21, according to the News document that ships with it, is that it can now take advantage of X toolkits if present. It lists support for Lesstif/Motif as well as Lucid and Athena widgets (and Xaw3d). Consequently, the menubar and the tool bar look more finished. The program does not, however, use GTK at this time. With the right icons, though, it would be easy to make Emacs look quite a bit like a GNOME app, or, for that matter, a KDE app.

The toolbar is the function of some very simple Lisp.

  (define-key global-map [tool-bar shell]
    '(menu-item "Shell" shell
		:image (image :type xpm :file "~/gnome-term-linux.xpm")))
in my .emacs file, for instance, produced an icon on the toolbar that invokes the Emacs shell buffer. Obviously, much more elaborate code can be substituted to make it worth the user's while to remove her hands from the keyboard long enough to click a button.

The addition of graphical cues extends to a few other areas of the software. The speedbar, for instance, now uses folder icons to denote directories instead of + and - symbols. Because of the raised look of the bars separating frames, it seems more likely people might try to "grab" them and resize them.

Next: Looking A Little Deeper »

Skip Ahead

1 The More Things Change....
2 The Pitter-patter of GNOMEish Feet
3 A Superficial Rundown
4 Looking A Little Deeper
5 Wrapping Up
Adding a button to Emacs' new tool bar involves three lines
of code.
Adding a button to Emacs' new tool bar involves three lines of code.

The speedbar in Emacs 21 is graphically enhanced, as is
much of the GUI, making things more intuitive for users used to common X
widgets.
The speedbar in Emacs 21 is graphically enhanced, as is much of the GUI, making things more intuitive for users used to common X widgets.





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers