aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reitter2009-03-14 21:30:12 +0000
committerDavid Reitter2009-03-14 21:30:12 +0000
commit959d68bd04a3d758014a63c5eac9bc15e53086c7 (patch)
tree07045515d7bb32ef9231471009030b72c5faeac7
parent57888b53bd2716cc120f4cb02875b892f74b41ff (diff)
downloademacs-959d68bd04a3d758014a63c5eac9bc15e53086c7.tar.gz
emacs-959d68bd04a3d758014a63c5eac9bc15e53086c7.zip
macos.texi (Mac / GNUstep Basics): remove references to Prefs panel
and NS resources following recent changes.
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/macos.texi305
2 files changed, 11 insertions, 299 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 772c291f786..80a76adbd40 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,8 @@
12009-03-14 David Reitter <david.reitter@gmail.com>
2
3 * macos.texi (Mac / GNUstep Basics): remove references to Prefs panel
4 and NS resources following recent changes.
5
12009-03-10 Jason Rumney <jasonr@gnu.org> 62009-03-10 Jason Rumney <jasonr@gnu.org>
2 7
3 * msdog.texi (Windows Misc): Remove doc for obsolete variable. Modify 8 * msdog.texi (Windows Misc): Remove doc for obsolete variable. Modify
diff --git a/doc/emacs/macos.texi b/doc/emacs/macos.texi
index 4344cc4a7a4..c6e68021f57 100644
--- a/doc/emacs/macos.texi
+++ b/doc/emacs/macos.texi
@@ -45,8 +45,7 @@ invoking @code{ns-extended-platform-support-mode}.
45same as @key{Super}, and Emacs provides a set of keybindings using 45same as @key{Super}, and Emacs provides a set of keybindings using
46this modifier key that mimic other Mac / GNUstep applications (@pxref{Mac / 46this modifier key that mimic other Mac / GNUstep applications (@pxref{Mac /
47GNUstep Events}). You can change these bindings in the usual way (@pxref{Key 47GNUstep Events}). You can change these bindings in the usual way (@pxref{Key
48Bindings}), or by using the Preferences panel (@pxref{Mac / GNUstep 48Bindings}).
49Customization}).
50 49
51 The standard Mac / GNUstep font and color panels are accessible via the 50 The standard Mac / GNUstep font and color panels are accessible via the
52@samp{Windows} menu, or via the standard @key{Cmd-t} and @key{Cmd-C} 51@samp{Windows} menu, or via the standard @key{Cmd-t} and @key{Cmd-C}
@@ -133,313 +132,21 @@ In addition, redundancy in the menus can be reduced and more shortcuts
133shown by invoking @code{ns-extended-platform-support-mode}. 132shown by invoking @code{ns-extended-platform-support-mode}.
134 133
135 134
136@subsection Preferences Panel
137
138The Preferences panel, much like the Options menu, is designed to allow quick
139and convenient setting of commonly used options.
140
141The Preferences panel is available for setting commonly used GUI-related
142options for Emacs. Access it under the Emacs menu (Mac) or Info menu
143(GNUstep), or using @kbd{Cmd-,}.
144
145Settings made here are saved when @samp{OK} is hit, or @samp{Save Options} is
146selected from the Options menu. These settings are stored into the NeXTstep
147``defaults'' system under keys described below.
148
149@itemize @bullet
150@item
151To set the default font used by Emacs click the @samp{Default Font...} button
152to being up the Font Panel, then click on a frame. The font of this frame
153will then be changed when you make a selection in the Font Panel, and this
154will be used as the default for future frames. If you do not select a frame
155first, the frame selected when you activated Preferences will be changed.
156
157@item
158The Color panel, brought up by the @samp{Colors...} button, allows setting of
159foreground or background of any face. Drag from the color bar to over the
160emacs face you want to change. This will change the foreground of that face,
161or holding shift when dragging will change the background.
162
163@item
164@samp{Smooth Fonts} and @samp{Use Quickdraw} control text antialiasing.
165Quickdraw is an older Mac technology still supported under OS X.
166
167@item
168The @samp{Expand Line Spacing} slider controls vertical spacing of text. The
1690.0 setting corresponds to the same height as other applications. Settings
170less than 0 compress the spacing, and greater than 0 expand it. Emacs must be
171restarted for the new setting to take effect.
172
173@item
174The @samp{Cursor Type} radio buttons select the cursor shape:
175cursor:
176
177@itemize
178@item
179Filled Box - the cursor is displayed as a box (default)
180@item
181Vertical Bar - the cursor is displayed as a vertical line
182@item
183Underscore - the cursor is displayed as a horizontal line
184@item
185Hollow - the cursor is displayed as a box with an outline but no fill
186@end itemize
187
188@item
189The @samp{Cursor Blink Rate} slider to sets the frequency at which the cursor
190blinks (CURRENTLY INOPERATIVE -- use @samp{customize group cursor} instead.)
191
192@item
193The @samp{Use System Highlight Color} option controls whether selected text is
194highlighted with the system default or the local emacs setting.
195
196@end itemize
197
198The behavior of Modifier keys inside emacs can be controlled by the drop-down
199menus in the @samp{Modifiers} section. By default the Alt or Opt key is bound
200to the Emacs 'Meta' key, and the Command key is bound to 'super' which allows
201the Command key to function in a way similar to other NeXTstep/OS X
202applications.
203
204
205@subsection Font and Color Panels 135@subsection Font and Color Panels
206 136
207The Font Panel may be accessed from the Windows menu or by @kbd{Cmd-t}. It 137The Font Panel may be accessed from the Windows menu or by @kbd{Cmd-t}. It
208will set the default font in the frame most recently used or clicked on. To 138will set the default font in the frame most recently used or clicked on. To
209make the setting permanent, use @samp{Save Options} in the Options menu, or 139make the setting permanent, use @samp{Save Options} in the Options menu, or
210run @code{ns-save-preferences}. 140run @code{menu-bar-options-save}.
211 141
212You can bring up a color panel (with @key{Cmd-C} or from the Windows menu) and 142You can bring up a color panel (with @key{Cmd-C} or from the Windows menu) and
213drag the color you want over the emacs face you want to change. Normal 143drag the color you want over the emacs face you want to change. Normal
214dragging will alter the foreground color. Shift dragging will alter the 144dragging will alter the foreground color. Shift dragging will alter the
215background color. To make the changes permanent select the "Save Options" 145background color. To make the changes permanent select the "Save Options"
216item in the "Options" menu, or run @code{ns-save-preferences}. Useful in this 146item in the "Options" menu, or run @code{menu-bar-options-save}. Useful in this
217context is the listing of all faces obtained by @key{M-x} 147context is the listing of all faces obtained by @key{M-x}
218@code{list-faces-display}. 148@code{list-faces-display}.
219 149
220
221@subsection Defaults
222
223Under X, resources are used to customize the behavior of Emacs to the
224needs of the user. Nextstep defaults fulfill a similar function. From
225the command line, the command @samp{defaults read org.gnu.Emacs} shows
226these resources as of the last Emacs exited, and individual resources
227can be read or written by commands like @samp{defaults read Emacs Foo}
228and @samp{defaults write Emacs Foo barvalue}.
229
230 Calling the function @code{ns-save-preferences} in lisp, or
231selecting the @samp{Option / Save Options} menu item, automatically
232writes out the defaults corresponding to the selected window.
233
234 In addition, you can set many of the following customizations by
235setting @code{default-frame-alist} in your initialization file.
236
237 Many of the preferences relating specifically to the Nextstep windowing
238system (such as font rendering and the cursor type) can be set using the
239Preferences panel. It is important to note that when you hit @samp{OK} on
240this panel, @emph{all} Nextstep settings are saved (including font and
241colors).
242
243This is a listing of some of the more useful defaults (and their
244default values). Several of these defaults accept the names of colors
245as values. For a list of all available colors pull up the color panel
246and look at the color list called @samp{Emacs}. Emacs also accepts
247color specifications of the form @samp{ARGBaarrggbb} where @var{aa},
248@var{rr}, @var{gg}, and @var{bb} are two hexadecimal digits describing
249the alpha, red, green, and blue content of the color respectively.
250@samp{HSBhhssbb}, @samp{CMYKccmmyykk} and @samp{GRAYgg} are the
251equivalents in @samp{HSB}, @samp{CMYK} and gray scales. (For HSB,
252@samp{AHSBaahhssbb} is also accepted.)
253
254@table @samp
255@item InternalBorderWidth
256Width in pixels of the internal border of the Nextstep frame. This
257acts to separate the text area of the window from the fringes,
258scrollbars, and/or edges.
259
260@example
261defaults write Emacs InternalBorderWidth 2
262@end example
263
264@item VerticalScrollBars
265@samp{YES} or @samp{NO} to enable or disable scroll bars, @samp{left} or
266@samp{right} to explicitly set the side.
267
268@example
269defaults write Emacs VerticalScrollBars YES
270@end example
271
272@item Font
273Name of the default font to be used for new frames (which can be
274overridden by various faces). If this font is not set, Emacs will use
275the system wide fixed pitch font. For most users the system fixed
276pitch font will be @samp{Monaco} which doesn't have any bold or italic
277versions. (Italic will be synthesized.)
278
279@item FontSize
280Size of the font to be used for new frames. If not set, Emacs will
281use the default size of the system wide fixed pitch font.
282
283@item Foreground
284The default foreground (text) color for new frames.
285
286@example
287defaults write Emacs Foreground "Black"
288@end example
289
290@item Background
291The default background color for new frames.
292
293@example
294defaults write Emacs Background "White"
295@end example
296
297@item Height
298Height in rows of the default window.
299
300@example
301defaults write Emacs Height 48
302@end example
303
304@item Width
305Width in columns of the default window.
306
307@example
308defaults write Emacs Width 80
309@end example
310
311@item CursorType
312Name of the default cursor type for Emacs. Allowed values are
313@samp{box}, @samp{hollow}, @samp{underscore}, @samp{bar}, @samp{line} and @samp{no}.
314
315@example
316defaults write Emacs CursorType box
317@end example
318
319@item CursorColor
320Name of the default cursor color for Emacs. Of a particular use for
321this setting is the @samp{Highlight} color. When it is the cursor
322color, Emacs will draw the cursor using the standard Nextstep
323highlighting operator.
324
325@example
326defaults write Emacs CursorColor blue
327@end example
328
329@item Top
330Distance in pixels from the top of the screen of the upper left corner
331of the default window.
332
333@example
334defaults write Emacs Top 100
335@end example
336
337@item Left
338Distance in pixels from the left edge of the screen to the upper left
339corner of the default window.
340
341@example
342defaults write Emacs Left 100
343@end example
344
345@item HideOnAutoLaunch
346@samp{YES} or @samp{NO} to determine whether Emacs will hide itself when
347autolaunched from the dock.
348
349@example
350defaults write Emacs HideOnAutoLaunch NO
351@end example
352
353@item ExpandSpace
354This lets you expand or shrink the line height used for displaying
355text. When this is set to 0.0, display should look like other
356Nextstep applications. If you set it higher than 0, Emacs will spread
357the text lines apart, less than 0, compress them together. (With
358settings below zero parts of characters may be chopped off in certain
359fonts.) When using the Preferences panel, this is controlled by a
360slider. You must OK the panel and then restart Emacs for this default
361to take effect.
362
363When setting this using @code{"defaults write"}, you can either set a floating
364point value, or @samp{YES}, which is equivalent 0.5, or @samp{NO}, which is
365equivalent to 0.0.
366
367@example
368defaults write Emacs ExpandSpace -0.125
369@end example
370
371@item GSFontAntiAlias
372This turns antialiasing on and off on. Note that, on OS X, even if
373antialiasing is on, Emacs will not antialias text of a size below the system
374preference setting.
375
376@example
377defaults write Emacs GSFontAntiAlias NO
378@end example
379
380@item UseQuickdrawSmoothing
381On OS X 10.3 and higher, this will render fonts using Quickdraw antialiasing,
382which is less heavy than the Quartz antialiasing used by default. Whether
383this is on or off, the system font size threshold for antialiasing (see above)
384is respected.
385
386@example
387defaults write Emacs UseQuickdrawSmoothing YES
388@end example
389
390@item AlternateModifier
391This allows you to set the effect of the Alt or Opt key. The default is
392@samp{meta}, meaning to use as the Emacs 'meta' key. You can also set this to
393@samp{command}, @samp{hyper}, @samp{alt}, or @samp{none}. The last is useful
394for Continental users who normally use this key to enter accented and other
395special characters.
396
397@example
398defaults write Emacs AlternateModifier "none"
399@end example
400
401@item CommandModifier
402This allows you to set the effect of the Command key. The default is
403@samp{super}, which is used in a set of keybindings such as @code{s-o} for
404``open file'' and @code{s-z} for ``undo'' that are similar to other NeXTstep
405applications. On the other hand, some people who use the Alt/Opt key for
406accent entry like to set this to @samp{meta} so they still have easy access to
407Emacs functionality bound to meta keys. You can also set this, like Alt/Opt,
408to @samp{hyper} or @samp{alt}, though there are no bindings to combinations
409using these keys by default. The @samp{none} option is not available for the
410Command key.
411
412@example
413defaults write Emacs CommandModifier "meta"
414@end example
415
416@item fooFrame
417Position and size to use for the frame named @var{foo} when it is
418created. The position and size have to be specified as a space
419separated list: @samp{top}, @samp{left}, @samp{height} and
420@samp{width}. @samp{top} and @samp{left} are expressed in pixels,
421@samp{height} is given in rows and @samp{width} is given in columns.
422Named frames can be created by e.g. @code{(make-frame '((name
423. "FOO")))}.
424
425@example
426defaults write Emacs TestFrame "100 200 30 70"
427@end example
428
429Another default previouly used by many Emacs users is this.
430
431@example
432defaults write Workspace DefaultOpenApp Emacs
433@end example
434
435It caused the NeXTstep Workspace to open files without a registered extension
436in Emacs instead of as usual Edit. For this default to work, Emacs needed to
437be in the application search path of the Workspace (which usually includes
438@file{~/Applications} and @file{~/Applications}). If anyone knows the current
439way to do this under OS X please contact the authors.
440
441@end table
442
443@subsection Open files by dragging to an Emacs window 150@subsection Open files by dragging to an Emacs window
444 151
445The default behaviour when a user drags files from another application 152The default behaviour when a user drags files from another application
@@ -518,9 +225,9 @@ font are stored in the variables @code{ns-input-font} and
518@code{ns-input-fontsize} respectively. 225@code{ns-input-fontsize} respectively.
519 226
520@item ns-power-off 227@item ns-power-off
521This event occurs when the user logs out and Emacs is still running. 228This event occurs when the user logs out and Emacs is still running, or when
522The default behavior is to save all file-visiting buffers without 229`Quit Emacs' is chosen from the application menu.
523confirmation, and exit. 230The default behavior is to save all file-visiting buffers.
524@end table 231@end table
525 232
526 Emacs also allows users to make use of Nextstep services, via a set 233 Emacs also allows users to make use of Nextstep services, via a set