Search: in
Hey Emacs
Hey Emacs Encyclopedia
  Tutorials     Encyclopedia     Dictionary     Directory  
Hey_Emacs Email this to a friend      Hey_Emacs
Sponsored Links

Hey Emacs

"Hey Emacs" is a line that is placed into text files to indicate to the Emacs and XEmacs text editors what mode to use when editing the file.

The "hey emacs" line is of the form <arbitrary text> -*- <mode name> -*- <arbitrary text>. Often the line begins with the comment indicator for the language the file is written in, followed by the words "Hey Emacs, this is a", and ends with the word "file." For example, a Lisp programmer might use the following "hey emacs" line (the semicolon is the Lisp comment character):

;Hey, Emacs! This is a -*- Lisp -*- file!

The words "Hey, Emacs" have no particular significance and serve only to explain the purpose of the line to non-Emacs users. Only the text between the -*- tokens is interpreted by the editor.

it:Hey Emacs





Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article



Related Links in Hey Emacs

Search for Hey Emacs in Tutorials
Search for Hey Emacs in Encyclopedia
Search for Hey Emacs in Dictionary
Search for Hey Emacs in Open Directory
Search for Hey Emacs in Store
Search for Hey Emacs in PriceGig



Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor

Advertisement

Advertisement



Hey Emacs
Hey_Emacs top Hey_Emacs

Home - Add TutorGig to Your Site - Disclaimer

©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement