comparison man/xemacs/menus.texi @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents de805c49cfc1
children
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
343 After you select this item, any time you execute a command with 343 After you select this item, any time you execute a command with
344 @kbd{M-x}which has a shorter keybinding, you will be shown the 344 @kbd{M-x}which has a shorter keybinding, you will be shown the
345 alternate binding before the command executes. 345 alternate binding before the command executes.
346 346
347 @item Syntax Highlighting 347 @item Syntax Highlighting
348 You can customize your init file to include the font-lock mode so that 348 You can customize your @code{.emacs} file to include the font-lock
349 when you select this item, the comments will be displayed in one face, 349 mode so that when you select this item, the comments will be
350 strings in another, reserved words in another, and so on. @xref{Init 350 displayed in one face, strings in another, reserved words in another,
351 File}. When @b{Fonts} is selected, different parts of the program will 351 and so on. When @b{Fonts} is selected, different parts of the program
352 appear in different Fonts. When @b{Colors} is selected, then the program 352 will appear in different Fonts. When @b{Colors} is selected, then the
353 will be displayed in different colors. Selecting @b{None} causes the 353 program will be displayed in different colors. Selecting @b{None}
354 program to appear in just one Font and Color. Selecting @b{Less} resets 354 causes the program to appear in just one Font and Color. Selecting
355 the Fonts and Colors to a fast, minimal set of decorations. Selecting 355 @b{Less} resets the Fonts and Colors to a fast, minimal set of
356 @b{More} resets the Fonts and Colors to a larger set of decorations. For 356 decorations. Selecting @b{More} resets the Fonts and Colors to a larger
357 example, if @b{Less} is selected (which is the default setting) then you 357 set of decorations. For example, if @b{Less} is selected (which is the
358 might have all comments in green color. Whereas, if @b{More} is 358 default setting) then you might have all comments in green color.
359 selected then a function name in the comments themselves might appear in 359 Whereas, if @b{More} is selected then a function name in the comments
360 a different Color or Font.@refill 360 themselves might appear in a different Color or Font.@refill
361 361
362 @item Paren Highlighting 362 @item Paren Highlighting
363 After selecting @b{Blink} from this item, if you place the cursor 363 After selecting @b{Blink} from this item, if you place the cursor
364 on a parenthesis, the matching parenthesis will blink. If you select 364 on a parenthesis, the matching parenthesis will blink. If you select
365 @b{Highlight} and place the cursor on a parenthesis, the whole 365 @b{Highlight} and place the cursor on a parenthesis, the whole
388 then there are no submenus for each buffer line, the only command 388 then there are no submenus for each buffer line, the only command
389 available will be selecting that buffer. 389 available will be selecting that buffer.
390 390
391 @item Save Options 391 @item Save Options
392 Selecting this item will save the current settings of your Options 392 Selecting this item will save the current settings of your Options
393 menu to your init file. @xref{Init File}. 393 menu to your @code{.emacs} file.
394 @end table 394 @end table
395 395
396 @node Buffers Menu 396 @node Buffers Menu
397 @subsection The Buffers Menu 397 @subsection The Buffers Menu
398 @cindex Buffers menu 398 @cindex Buffers menu
428 You can customize any of the pull-down menus by adding or removing menu 428 You can customize any of the pull-down menus by adding or removing menu
429 items and disabling or enabling existing menu items. 429 items and disabling or enabling existing menu items.
430 430
431 The following functions are available: 431 The following functions are available:
432 @table @kbd 432 @table @kbd
433 @item add-menu: (@var{menu-path} @var{menu-name} @var{menu-items} &optional @var{before}) 433 @item add-menu: @var{(menu-path menu-name menu-items &optional before)}
434 Add a menu to the menu bar or one of its submenus. 434 Add a menu to the menu bar or one of its submenus.
435 @item add-menu-item: (@var{menu-path} @var{item-name} @var{function} 435 @item add-menu-item: @var{(menu-path item-name function enabled-p
436 @var{enabled-p} &optional @var{before}) 436 &optional before)}
437 Add a menu item to a menu, creating the menu first if necessary. 437 Add a menu item to a menu, creating the menu first if necessary.
438 @item delete-menu-item: (@var{path}) 438 @item delete-menu-item: @var{(path)}
439 Remove the menu item defined by @var{path} from the menu hierarchy. 439 Remove the menu item defined by @var{path} from the menu hierarchy.
440 @item disable-menu-item: (@var{path}) 440 @item disable-menu-item: @var{(path)}
441 Disable the specified menu item. 441 Disable the specified menu item.
442 @item enable-menu-item: (@var{path}) 442 @item enable-menu-item: @var{(path)}
443 Enable the specified previously disabled menu item. 443 Enable the specified previously disabled menu item.
444 @item relabel-menu-item: (@var{path} @var{new-name}) 444 @item relabel-menu-item: @var{(path new-name)}
445 Change the string of the menu item specified by @var{path} to 445 Change the string of the menu item specified by @var{path} to
446 @var{new-name}. 446 @var{new-name}.
447 447
448 @end table 448 @end table
449 449