Emacs: Difference between revisions
m (→Links) |
|||
Line 145: | Line 145: | ||
== Tools / Software == | == Tools / Software == | ||
* For Linux, just the packaging system to install, e.g. Synaptic Package Manager for Ubuntu. Check out addons (search for emacs) | * For Linux, just use the packaging system to install, e.g. Synaptic Package Manager for Ubuntu. Check out addons (search for emacs) | ||
; Various emacs versions | ; Various emacs versions | ||
* [http://www.xemacs.org/Download/index.html XEmacs Download Locations] | * [http://www.xemacs.org/Download/index.html XEmacs Download Locations] | ||
* [http://ourcomments.org/Emacs/EmacsW32.html EmacsW32] An Win Gnu emacs add on (also includes emacs in the distribution) | * [http://ourcomments.org/Emacs/EmacsW32.html EmacsW32] An Win Gnu emacs add on (also includes emacs in the distribution) | ||
* [http://www.gnu.org/software/emacs/emacs.html Gnu | * [http://www.gnu.org/software/emacs/emacs.html Gnu Emacs] (probably the best and largest beast) | ||
; Small versions | |||
There are many .... | |||
* [http://www.ymacs.org/ Ymacs] (runs as browser plugin) | |||
== Other Links == | == Other Links == |
Revision as of 02:39, 15 February 2011
Definition
Note: Copy/Paste from http://tecfa.unige.ch/guides/emacs/pointers.html (will clean this up sometimes soon I hope - Daniel K. Schneider 19:50, 2 November 2007 (MET)
Emacs is a text editor, and much more. XEmacs provides a comprehensive environment where you can edit source code, or multiple text files, read mail or news, and even edit files remotely using FTP.
There exist many variants: The most popular ones are Xemacs and GNU emacs
Warning: Emacs is very powerful, but since it was born before Windows (or even MS-DOS), shortcuts are not the same. Also it is geared towards speed. The typical emacs user doesn't not want time-consuming pop dialogs, but you dialog though a little minibuffer window. That's stuff you have to learn. Else forget it. When you install Emacs there is a tutorial (Hit the help button) and do it at least 10 times ;)
See also: Text editor
Specialized tips
(Some tips regarding formats discussed in this wiki)
ActionScript
Install: actionscript-mode.el written by Pet Tomato. Tested by Daniel K. Schneider with GnuEmacs 21.4.1 under Ubuntu. He provides 2 files:
- actionscript-mode.el
- as-config.el (this is only an option, did not install this)
There is a different and more recent actionscript mode from Austin Haas based on David Linquists ecmascript-mode. (made for emacsw32). I use this now for emacs 22.1.1 on Ubuntu - Daniel K. Schneider 13:17, 1 November 2008 (UTC)
To install these I did the following:
- Copied the 2 *.el files to /usr/share/emacs/site-lisp
- Byte-compiled (this is not necessary)
- Inserted this in my .emacs file:
;; Actionscript stuff (autoload 'actionscript-mode "actionscript-mode" "Major mode for editing ActionScript files." t) (add-to-list 'auto-mode-alist '("\\.as[123]?$" . actionscript-mode))
XML
- See XML editor for alternatives
- DTD support
The Xemacs (default "fat") installation provides good XML/DTD support through the PSGML library.
On recent Gnu Emacsen, the PSGML library has to be installed since nXML is now the default XML mode. E.g. on Linux Ubuntu this can be done through the Synaptic Package Manager. Type M-x xml-mode to get it.
Both Emacsen will find your private (system) DTDs and also includes/supports a list of public DTDs (you can add yours in the installation by editing ).
- Relax NG (RNC) support
Use nXML mode (it is distributed with a standard recent Gnu emacs installation). Here is a short how to:
- Start with a minimal template, e.g. to edit MXML Flex code use this:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> </mx:Application>
- Type M-X nxml-mode if by default *.xml files will go into no mode or PSGML mode in your setup.
- Menu XML->Set Schema ; File
- Select the appropriate RNC file
- To insert attributes
- Put your cursor inside a begin tag and hit CTRL-Return
- Then select a tag from the *Completions* buffer with the mouse or start typing and hit SPACE to find completions.
- To insert tags:
- Put the cursor between tags
- Type "<" and hit CTRL-Return or type some stuff and hit SPACE to see completions.
- Start inserting attributes (as above) if you like
- Then either type ">" followed by "</" + CTRL-Return or enter "/>".
As you can see, this interface was made for people willing to learn keyboard strokes. It's faster than using right-click contextual menus but more challenging for some ...
- XML Schema (XSD) support
- XML Schema support doesn't exist (IMHO).
- XSLT support
- Included in Gnu Emacs through nXML mode
- Included in Xemacs through some specific XSLT mode
Mediawikis
With gnu emacs we suggest to use:
- wikipediamode.el(Wikipedia. It does syntax coloring plus navigation/tree tools
- download link: emacswiki.org
- In addition we suggest to activate / install if needed: longlines.el
Links
Manuals & Short References
- XEmacs Documentation, all kind of manuals in PDF
- GNU Emacs Reference Card (attention!!! for GNU emacs) [local copy]
- XEMACS Emacs Reference Card (attention format POSTSCRIPT [local copy]
- XEMACS Emacs Reference Card (PDF)
- DIRED Mode Reference Card (PDF) (just the directory editor for GNU emacs)
- EmacsWiki Good wiki site for both Emacs and Xemacs (multi-lingual)
- A la découverte de GNU Emacs
En français:
- EmacsWiki - français, encore)
- Manuel Gnu Emacs
Customization Links
Configuring the functionalities of XEmacs:
- The very unofficial dotemacs home: best overall site
- Robin S. Socha's XEmacs Settings : well-commented dot file collection and screen shots
- Erik Sundermann's XEmacs Customization Page: good 'starter' .emacs customization page (but a bit old!)
- Emacs keybindings Good (but very technical) document for all Emacsen
FAQ's
- XEmacs FAQ in english
- XEmacs FAQ en fran�ais
- XEmacs FAQ en fran�ais
- XEmacs mailing lists
Tutorials
On the Web you can find many mini-tutorials, there are also book chapters, etc.
- There's the XEmacs tutorial available from the Help Menu under `Basics->Tutorials', or by typing C-h t. To check whether it's available in a non-english language, type C-u C-h t TAB, type the first letters of your preferred language, then type RET.
- Emacs editing environment by Michael Stutz at IBM developer works. Complete, requires 12 hours of work. (Free) registration required.
- Emacs Beginner's Tutorial by J.D. Zawodny @ RootPrompt.org
- XEmacs Tutorial Introduction by Sarah Waterson
- Tutorial - xemacs (good, but Very short)
En français:
- GNU Emacs: tutorial (en fran�ais)
- Aller plus loin avec GNU Emacs
Specialized topics
Emacs programming
- Emacs Lisp information (includes pointers to general emacs resources too)
(Some) Emacs Modes
- Html helper mode
- The Emacs Package "hm--html-menus", a mode that helps editing html pages.
- PSGML Mode home page. SEE the XML page for more pointers on PSGML !!
- Using Emacs for XML documents, good IBM developerWorks article (installation, configuration, external validator)
- Java Development Environment for Emacs (JDE)
Tools / Software
- For Linux, just use the packaging system to install, e.g. Synaptic Package Manager for Ubuntu. Check out addons (search for emacs)
- Various emacs versions
- XEmacs Download Locations
- EmacsW32 An Win Gnu emacs add on (also includes emacs in the distribution)
- Gnu Emacs (probably the best and largest beast)
- Small versions
There are many ....
- Ymacs (runs as browser plugin)
Other Links
- x and emacsen stuff (some links to tips and guides, many dead links )
- XEmacs Home Page.
- Xemacs is Dead. Long Live XEmacs (Emacs vs. Xemacs 2008).