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