background preloader

Xemacs

Facebook Twitter

A Collection of Tutorials on Emacs - Indentation. Go to the first, previous, next, last section, table of contents. Basic Concepts There are quite a few concepts in Emacs which relate to white space at the beginning of a line. Enough, in fact, to be potentially quite confusing. I'll try to clear up the confusion in this little document. The following concepts come into play: The TAB key. Contrary to popular belief, the TAB key does not insert a tab character in most modes.

The tab character. It is possible to change the way a tab character is displayed. In order to correctly view files with non-standard tab width settings, it is possible to set the variable tab-width, like this: (setq-default tab-width 4) If you only want this in a particular mode, add (setq tab-width 4) to that mode's hook. Whether or not tab characters are used for indentation. Whether by syntax-driven indentation, or relative indentation (text mode), or advancing to the next tab stop (fundamental mode), indentation needs to insert white space.

Syntax driven indentation. User's Manual. Init file. This chapter talks about various topics relevant to adapting the behavior of Emacs in minor ways. All kinds of customization affect only the particular Emacs job that you do them in. They are completely lost when you kill the Emacs job, and have no effect on other Emacs jobs you may run at the same time or later. The only way an Emacs job can affect anything outside of it is by writing a file; in particular, the only way to make a customization `permanent' is to put something in your init file or other appropriate file to do the customization in each session. See section 27.7 The Init File. 27.1 Minor Modes Minor modes are common options which may be useful in many major modes, but which may need to be enabled or disabled independently of the major mode. Append -mode to the name of a minor mode to get the name of a command function that turns the mode on or off.

Auto Fill mode allows you to enter filled text without breaking lines explicitly. 27.2 Behaviors 27.3 Variables C-h v s x n p. XEmacs for Windows. Quickstart Package Guide. This text is intended to help you get started installing a new XEmacs and its packages from start. For details see the 'Startup Paths' and 'Packages' sections of the XEmacs info manual. An overview of existing packages and their purpose may be found in the XEmacs 21 Packages CVS Repository document and under the XEmacs source tree in etc/PACKAGES.

Index Real Real Quickstart FAQ Q: Do I need to have the packages to compile XEmacs? Q: I really liked the old way that packages were bundled and do not want to mess with packages at all. A note of caution The XEmacs package system is still being developed. Some Package Theory In order to reduce the size and increase the maintainability of XEmacs, the majority of the Elisp that came with previous releases have been unbundled. You select just the ones you need. Package hierarchies On startup XEmacs looks for packages in so called package hierarchies. However by default there are following three system wide hierarchies, Normal packages go here: Emacs Lisp coding checklist. Copyright © 1995-2007 Jari Aalto License: This material may be distributed only subject to the terms and conditions set forth in GNU General Public License v2 or later; or, at your option, distributed under the terms of GNU Free Documentation License version 1.2 or later (GNU FDL).

This document explains how you construct a good Emacs Lisp package. Document serves as a checklist where you can refer back after you have made your first lisp package. Check that are pieces are in their places. When the packages have more or less standard layout, other tools can be used to lint (verify the the structure) and find information from them. 1.0.1 The order of importance Variable and function naming – without this your package is messy. 2.1 Select unique prefix for all functions and all variables Say, you have created package XXX.el, then all in it should be inform Some prefer naming the variables differently, like adding double dash or colon. 2.2 Always include correct first line:

Using Emacs as a Development Environment. Emacs is a highly customizable editor—indeed, it has been customized to the point where it is more like an operating system than an editor! Many developers and sysadmins do in fact spend practically all their time working inside Emacs, leaving it only to log out. It is impossible even to summarize everything Emacs can do here, but here are some of the features of interest to developers: And doubtless many more that have been overlooked. Emacs can be installed on FreeBSD using the editors/emacs port. Once it is installed, start it up and do C-h t to read an Emacs tutorial—that means hold down the control key, press h, let go of the control key, and then press t. Although Emacs does have menus, it is well worth learning the key bindings, as it is much quicker when you are editing something to press a couple of keys than to try to find the mouse and then click on the right place.

Fortunately, it is quite easy to pick up the key-bindings, as they are displayed next to the menu item. 2.7.4.