Mercurial > emacs
comparison man/custom.texi @ 61606:e348d86e70f8
*** empty log message ***
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 17 Apr 2005 21:52:06 +0000 |
parents | a45405053cb1 |
children | 463dbe69de36 e1fbb019c538 |
comparison
equal
deleted
inserted
replaced
61605:26bb83260541 | 61606:e348d86e70f8 |
---|---|
1 @c This is part of the Emacs manual. | 1 @c This is part of the Emacs manual. |
2 @c Copyright (C) 1985,86,87,93,94,95,97,2000,2001,2002,2004 | 2 @c Copyright (C) 1985,86,87,93,94,95,97,2000,2001,2002,2004,2005 |
3 @c Free Software Foundation, Inc. | 3 @c Free Software Foundation, Inc. |
4 @c See file emacs.texi for copying conditions. | 4 @c See file emacs.texi for copying conditions. |
5 @node Customization, Quitting, Amusements, Top | 5 @node Customization, Quitting, Amusements, Top |
6 @chapter Customization | 6 @chapter Customization |
7 @cindex customization | 7 @cindex customization |
2311 Enable the use of the command @code{narrow-to-region} without confirmation. | 2311 Enable the use of the command @code{narrow-to-region} without confirmation. |
2312 | 2312 |
2313 @example | 2313 @example |
2314 (put 'narrow-to-region 'disabled nil) | 2314 (put 'narrow-to-region 'disabled nil) |
2315 @end example | 2315 @end example |
2316 | |
2317 @item | |
2318 Adjusting the configuration to various contexts. | |
2319 | |
2320 In most of the cases, people want their Emacs to behave the same on | |
2321 all their machines, so their configuration should be the same, no | |
2322 matter whether it's GNU/Linux or not, under X11 or on a tty, with one | |
2323 version of Emacs or another, ... | |
2324 | |
2325 What can happen, tho, is that depending on the circumstance some | |
2326 features may or may not be available. In that case just prepend each | |
2327 such customization with a little test that ensures that the feature | |
2328 can be used. The best tests are usually checking that the feature is | |
2329 available, rather than checking what kind of environment is | |
2330 being used. | |
2331 | |
2332 @example | |
2333 (if (fboundp 'blinking-cursor-mode) | |
2334 (blinking-cursor-mode 0)) | |
2335 @end example | |
2336 | |
2337 @example | |
2338 (if (boundp 'coding-category-utf-8) | |
2339 (set-coding-priority '(coding-category-utf-8))) | |
2340 @end example | |
2341 | |
2342 @example | |
2343 (require 'cl) ; To define `ignore-errors'. | |
2344 (ignore-errors (set-face-background 'region "grey75")) | |
2345 @end example | |
2346 | |
2347 Note also that a @code{setq} on a variable which does not exist is | |
2348 generally harmless, so those usually do not need to be made | |
2349 conditional on any kind of test. | |
2350 | |
2316 @end itemize | 2351 @end itemize |
2352 | |
2317 | 2353 |
2318 @node Terminal Init | 2354 @node Terminal Init |
2319 @subsection Terminal-specific Initialization | 2355 @subsection Terminal-specific Initialization |
2320 | 2356 |
2321 Each terminal type can have a Lisp library to be loaded into Emacs when | 2357 Each terminal type can have a Lisp library to be loaded into Emacs when |