Mercurial > emacs
comparison man/custom.texi @ 90203:187d6a1f84f7
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-71
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 485-492)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 92-94)
- Merge from emacs--cvs-trunk--0
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 22 Jul 2005 08:27:27 +0000 |
parents | f042e7c0fe20 c044e7b7f251 |
children | 2d92f5c9d6ae |
comparison
equal
deleted
inserted
replaced
90202:7597b4a23c3b | 90203:187d6a1f84f7 |
---|---|
182 Index (@pxref{Variable Index}). The rest are faces and their | 182 Index (@pxref{Variable Index}). The rest are faces and their |
183 attributes (@pxref{Faces}). | 183 attributes (@pxref{Faces}). |
184 | 184 |
185 @findex customize | 185 @findex customize |
186 @cindex customization buffer | 186 @cindex customization buffer |
187 You can browse interactively through the the user options and change | 187 You can browse interactively through the user options and change |
188 some of them using @kbd{M-x customize}. This command creates a | 188 some of them using @kbd{M-x customize}. This command creates a |
189 @dfn{customization buffer}, which offers commands to navigate through | 189 @dfn{customization buffer}, which offers commands to navigate through |
190 a logically organized structure of the Emacs user options; you can | 190 a logically organized structure of the Emacs user options; you can |
191 also use it to edit and set their values, and to save settings | 191 also use it to edit and set their values, and to save settings |
192 permanently in your @file{~/.emacs} file (@pxref{Init File}). | 192 permanently in your @file{~/.emacs} file (@pxref{Init File}). |
2311 @example | 2311 @example |
2312 (put 'narrow-to-region 'disabled nil) | 2312 (put 'narrow-to-region 'disabled nil) |
2313 @end example | 2313 @end example |
2314 | 2314 |
2315 @item | 2315 @item |
2316 Adjusting the configuration to various contexts. | 2316 Adjusting the configuration to various platforms and Emacs versions. |
2317 | 2317 |
2318 In most of the cases, people want their Emacs to behave the same on | 2318 Users typically want Emacs to behave the same on all systems, so the |
2319 all their machines, so their configuration should be the same, no | 2319 same init file is right for all platforms. However, sometimes it |
2320 matter whether it's GNU/Linux or not, under X11 or on a tty, with one | 2320 happens that a function you use for customizing Emacs is not available |
2321 version of Emacs or another, ... | 2321 on some platforms or in older Emacs versions. To deal with that |
2322 | 2322 situation, put the customization inside a conditional that tests whether |
2323 What can happen, tho, is that depending on the circumstance some | 2323 the function or facility is available, like this: |
2324 features may or may not be available. In that case just prepend each | 2324 |
2325 such customization with a little test that ensures that the feature | 2325 @example |
2326 can be used. The best tests are usually checking that the feature is | 2326 (if (fboundp 'blink-cursor-mode) |
2327 available, rather than checking what kind of environment is | 2327 (blink-cursor-mode 0)) |
2328 being used. | 2328 |
2329 | |
2330 @example | |
2331 (if (fboundp 'blinking-cursor-mode) | |
2332 (blinking-cursor-mode 0)) | |
2333 @end example | |
2334 | |
2335 @example | |
2336 (if (boundp 'coding-category-utf-8) | 2329 (if (boundp 'coding-category-utf-8) |
2337 (set-coding-priority '(coding-category-utf-8))) | 2330 (set-coding-priority '(coding-category-utf-8))) |
2338 @end example | 2331 @end example |
2339 | 2332 |
2340 @example | 2333 @noindent |
2341 (require 'cl) ; To define `ignore-errors'. | 2334 You can also simply disregard the errors that occur if the |
2342 (ignore-errors (set-face-background 'region "grey75")) | 2335 function is not defined. |
2343 @end example | 2336 |
2344 | 2337 @example |
2345 Note also that a @code{setq} on a variable which does not exist is | 2338 (condition case () |
2346 generally harmless, so those usually do not need to be made | 2339 (set-face-background 'region "grey75") |
2347 conditional on any kind of test. | 2340 (error nil)) |
2348 | 2341 @end example |
2342 | |
2343 A @code{setq} on a variable which does not exist is generally | |
2344 harmless, so those do not need a conditional. | |
2349 @end itemize | 2345 @end itemize |
2350 | |
2351 | 2346 |
2352 @node Terminal Init | 2347 @node Terminal Init |
2353 @subsection Terminal-specific Initialization | 2348 @subsection Terminal-specific Initialization |
2354 | 2349 |
2355 Each terminal type can have a Lisp library to be loaded into Emacs when | 2350 Each terminal type can have a Lisp library to be loaded into Emacs when |