Mercurial > hg > xemacs-beta
comparison man/xemacs-faq.texi @ 462:0784d089fdc9 r21-2-46
Import from CVS: tag r21-2-46
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:44:37 +0200 |
parents | d7a9135ec789 |
children | 5aa1854ad537 |
comparison
equal
deleted
inserted
replaced
461:120ed4009e51 | 462:0784d089fdc9 |
---|---|
5 @setchapternewpage off | 5 @setchapternewpage off |
6 @c %**end of header | 6 @c %**end of header |
7 @finalout | 7 @finalout |
8 @titlepage | 8 @titlepage |
9 @title XEmacs FAQ | 9 @title XEmacs FAQ |
10 @subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2001/01/18 13:35:02 $ | 10 @subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2001/03/08 08:19:10 $ |
11 @sp 1 | 11 @sp 1 |
12 @author Tony Rossini <rossini@@biostat.washington.edu> | 12 @author Tony Rossini <rossini@@biostat.washington.edu> |
13 @author Ben Wing <ben@@xemacs.org> | 13 @author Ben Wing <ben@@xemacs.org> |
14 @author Chuck Thompson <cthomp@@xemacs.org> | 14 @author Chuck Thompson <cthomp@@xemacs.org> |
15 @author Steve Baur <steve@@xemacs.org> | 15 @author Steve Baur <steve@@xemacs.org> |
65 @uref{xemacs-faq.texi, man/xemacs-faq.texi}. | 65 @uref{xemacs-faq.texi, man/xemacs-faq.texi}. |
66 @item | 66 @item |
67 If you do not have makeinfo installed, you may @uref{xemacs-faq.info, | 67 If you do not have makeinfo installed, you may @uref{xemacs-faq.info, |
68 download the faq} in info format, and install it in @file{<XEmacs | 68 download the faq} in info format, and install it in @file{<XEmacs |
69 library directory>/info/}. For example in | 69 library directory>/info/}. For example in |
70 @file{/usr/local/lib/xemacs-20.4/info/}. | 70 @file{/usr/local/lib/xemacs-21.4/info/}. |
71 | 71 |
72 @end itemize | 72 @end itemize |
73 | 73 |
74 @end html | 74 @end html |
75 | 75 |
125 * Q1.3.5:: Please explain the various input methods in MULE/XEmacs | 125 * Q1.3.5:: Please explain the various input methods in MULE/XEmacs |
126 * Q1.3.6:: How do I portably code for MULE/XEmacs? | 126 * Q1.3.6:: How do I portably code for MULE/XEmacs? |
127 * Q1.3.7:: How about Cyrillic Modes? | 127 * Q1.3.7:: How about Cyrillic Modes? |
128 | 128 |
129 Getting Started: | 129 Getting Started: |
130 * Q1.4.1:: What is a @file{.emacs} and is there a sample one? | 130 * Q1.4.1:: What is an @file{init.el} or @file{.emacs} and is there a sample one? |
131 * Q1.4.2:: Can I use the same @file{.emacs} with the other Emacs? | 131 * Q1.4.2:: Can I use the same @file{init.el}/@file{.emacs} with the other Emacs? |
132 * Q1.4.3:: Any good XEmacs tutorials around? | 132 * Q1.4.3:: Any good XEmacs tutorials around? |
133 * Q1.4.4:: May I see an example of a useful XEmacs Lisp function? | 133 * Q1.4.4:: May I see an example of a useful XEmacs Lisp function? |
134 * Q1.4.5:: And how do I bind it to a key? | 134 * Q1.4.5:: And how do I bind it to a key? |
135 * Q1.4.6:: What's the difference between a macro and a function? | 135 * Q1.4.6:: What's the difference between a macro and a function? |
136 | 136 |
199 * Q3.1.6:: How can I have the window title area display the full path? | 199 * Q3.1.6:: How can I have the window title area display the full path? |
200 * Q3.1.7:: @samp{xemacs -name junk} doesn't work? | 200 * Q3.1.7:: @samp{xemacs -name junk} doesn't work? |
201 * Q3.1.8:: @samp{-iconic} doesn't work. | 201 * Q3.1.8:: @samp{-iconic} doesn't work. |
202 | 202 |
203 Textual Fonts & Colors: | 203 Textual Fonts & Colors: |
204 * Q3.2.1:: How can I set color options from @file{.emacs}? | 204 * Q3.2.1:: How can I set color options from @file{init.el}/@file{.emacs}? |
205 * Q3.2.2:: How do I set the text, menu and modeline fonts? | 205 * Q3.2.2:: How do I set the text, menu and modeline fonts? |
206 * Q3.2.3:: How can I set the colors when highlighting a region? | 206 * Q3.2.3:: How can I set the colors when highlighting a region? |
207 * Q3.2.4:: How can I limit color map usage? | 207 * Q3.2.4:: How can I limit color map usage? |
208 * Q3.2.5:: My tty supports color, but XEmacs doesn't use them. | 208 * Q3.2.5:: My tty supports color, but XEmacs doesn't use them. |
209 * Q3.2.6:: Can I have pixmap backgrounds in XEmacs? | 209 * Q3.2.6:: Can I have pixmap backgrounds in XEmacs? |
225 * Q3.5.3:: How do I bind C-. and C-; to scroll one line up and down? | 225 * Q3.5.3:: How do I bind C-. and C-; to scroll one line up and down? |
226 * Q3.5.4:: Globally binding @kbd{Delete}? | 226 * Q3.5.4:: Globally binding @kbd{Delete}? |
227 * Q3.5.5:: Scrolling one line at a time. | 227 * Q3.5.5:: Scrolling one line at a time. |
228 * Q3.5.6:: How to map @kbd{Help} key alone on Sun type4 keyboard? | 228 * Q3.5.6:: How to map @kbd{Help} key alone on Sun type4 keyboard? |
229 * Q3.5.7:: How can you type in special characters in XEmacs? | 229 * Q3.5.7:: How can you type in special characters in XEmacs? |
230 * Q3.5.8:: Why does @code{(global-set-key [delete-forward] 'delete-char)} complain? | 230 * Q3.5.8:: [This question intentionally left blank] |
231 * Q3.5.9:: How do I make the Delete key delete forward? | 231 * Q3.5.9:: How do I make the Delete key delete forward? |
232 * Q3.5.10:: Can I turn on @dfn{sticky} modifier keys? | 232 * Q3.5.10:: Can I turn on @dfn{sticky} modifier keys? |
233 * Q3.5.11:: How do I map the arrow keys? | 233 * Q3.5.11:: How do I map the arrow keys? |
234 | 234 |
235 The Cursor: | 235 The Cursor: |
256 | 256 |
257 Scrollbars: | 257 Scrollbars: |
258 * Q3.9.1:: How can I disable the scrollbar? | 258 * Q3.9.1:: How can I disable the scrollbar? |
259 * Q3.9.2:: How can one use resources to change scrollbar colors? | 259 * Q3.9.2:: How can one use resources to change scrollbar colors? |
260 * Q3.9.3:: Moving the scrollbar can move the point; can I disable this? | 260 * Q3.9.3:: Moving the scrollbar can move the point; can I disable this? |
261 * Q3.9.4:: How can I get automatic horizontal scrolling? | 261 * Q3.9.4:: How can I turn off automatic horizontal scrolling in specific modes? |
262 | 262 |
263 Text Selections: | 263 Text Selections: |
264 * Q3.10.1:: How can I turn off or change highlighted selections? | 264 * Q3.10.1:: How can I turn off or change highlighted selections? |
265 * Q3.10.2:: How do I get that typing on an active region removes it? | 265 * Q3.10.2:: How do I get that typing on an active region removes it? |
266 * Q3.10.3:: Can I turn off the highlight during isearch? | 266 * Q3.10.3:: Can I turn off the highlight during isearch? |
321 The Miscellaneous Stuff | 321 The Miscellaneous Stuff |
322 | 322 |
323 * Q5.0.1:: How can I do source code highlighting using font-lock? | 323 * Q5.0.1:: How can I do source code highlighting using font-lock? |
324 * Q5.0.2:: I do not like cc-mode. How do I use the old c-mode? | 324 * Q5.0.2:: I do not like cc-mode. How do I use the old c-mode? |
325 * Q5.0.3:: How do I get @samp{More} Syntax Highlighting on by default? | 325 * Q5.0.3:: How do I get @samp{More} Syntax Highlighting on by default? |
326 * Q5.0.4:: How can I enable auto-indent? | 326 * Q5.0.4:: How can I enable auto-indent and/or Filladapt? |
327 * Q5.0.5:: How can I get XEmacs to come up in text/auto-fill mode by default? | 327 * Q5.0.5:: How can I get XEmacs to come up in text/auto-fill mode by default? |
328 * Q5.0.6:: How do I start up a second shell buffer? | 328 * Q5.0.6:: How do I start up a second shell buffer? |
329 * Q5.0.7:: Telnet from shell filters too much. | 329 * Q5.0.7:: Telnet from shell filters too much. |
330 * Q5.0.8:: Why does edt emulation not work? | 330 * Q5.0.8:: Why does edt emulation not work? |
331 * Q5.0.9:: How can I emulate VI and use it as my default mode? | 331 * Q5.0.9:: How can I emulate VI and use it as my default mode? |
332 * Q5.0.10:: [This question intentionally left blank] | 332 * Q5.0.10:: [This question intentionally left blank] |
333 * Q5.0.11:: How do I turn on filladapt for all buffers? | 333 * Q5.0.11:: [This question intentionally left blank] |
334 * Q5.0.12:: How do I disable gnuserv from opening a new frame? | 334 * Q5.0.12:: How do I disable gnuserv from opening a new frame? |
335 * Q5.0.13:: How do I start gnuserv so that each subsequent XEmacs is a client? | 335 * Q5.0.13:: How do I start gnuserv so that each subsequent XEmacs is a client? |
336 * Q5.0.14:: Strange things are happening in Shell Mode. | 336 * Q5.0.14:: Strange things are happening in Shell Mode. |
337 * Q5.0.15:: Where do I get the latest CC Mode? | 337 * Q5.0.15:: Where do I get the latest CC Mode? |
338 * Q5.0.16:: I find auto-show-mode disconcerting. How do I turn it off? | 338 * Q5.0.16:: I find auto-show-mode disconcerting. How do I turn it off? |
360 * Q5.2.3:: What's NAS, how do I get it? | 360 * Q5.2.3:: What's NAS, how do I get it? |
361 * Q5.2.4:: Sunsite sounds don't play. | 361 * Q5.2.4:: Sunsite sounds don't play. |
362 | 362 |
363 Miscellaneous: | 363 Miscellaneous: |
364 * Q5.3.1:: How do you make XEmacs indent CL if-clauses correctly? | 364 * Q5.3.1:: How do you make XEmacs indent CL if-clauses correctly? |
365 * Q5.3.2:: Fontifying hangs when editing a postscript file. | 365 * Q5.3.2:: [This question intentionally left blank] |
366 * Q5.3.3:: How can I print WYSIWYG a font-locked buffer? | 366 * Q5.3.3:: How can I print WYSIWYG a font-locked buffer? |
367 * Q5.3.4:: Getting @kbd{M-x lpr} to work with postscript printer. | 367 * Q5.3.4:: Getting @kbd{M-x lpr} to work with postscript printer. |
368 * Q5.3.5:: How do I specify the paths that XEmacs uses for finding files? | 368 * Q5.3.5:: How do I specify the paths that XEmacs uses for finding files? |
369 * Q5.3.6:: [This question intentionally left blank] | 369 * Q5.3.6:: [This question intentionally left blank] |
370 * Q5.3.7:: Can I have the end of the buffer delimited in some way? | 370 * Q5.3.7:: Can I have the end of the buffer delimited in some way? |
377 XEmacs on MS Windows | 377 XEmacs on MS Windows |
378 | 378 |
379 General Info: | 379 General Info: |
380 * Q6.0.1:: What is the status of the XEmacs port to Windows? | 380 * Q6.0.1:: What is the status of the XEmacs port to Windows? |
381 * Q6.0.2:: What flavors of MS Windows are supported? | 381 * Q6.0.2:: What flavors of MS Windows are supported? |
382 * Q6.0.3:: Are binary kits available? | 382 * Q6.0.3:: Are binaries available? |
383 * Q6.0.4:: Does XEmacs on MS Windows require an X server to run? | 383 * Q6.0.4:: Can I build XEmacs on MS Windows with support for X or Cygwin? |
384 | 384 |
385 Building XEmacs on MS Windows: | 385 Building XEmacs on MS Windows: |
386 * Q6.1.1:: I decided to run with X. Where do I get an X server? | 386 * Q6.1.1:: I decided to run with X. Where do I get an X server? |
387 * Q6.1.2:: What compiler do I need to compile XEmacs? | 387 * Q6.1.2:: What compiler do I need to compile XEmacs? |
388 * Q6.1.3:: How do I compile for the native port? | 388 * Q6.1.3:: How do I compile for the native port? |
391 * Q6.1.6:: What do I need for Cygwin? | 391 * Q6.1.6:: What do I need for Cygwin? |
392 | 392 |
393 Customization and User Interface: | 393 Customization and User Interface: |
394 * Q6.2.1:: How will the port cope with differences in the Windows user interface? | 394 * Q6.2.1:: How will the port cope with differences in the Windows user interface? |
395 * Q6.2.2:: How do I change fonts in XEmacs on MS Windows? | 395 * Q6.2.2:: How do I change fonts in XEmacs on MS Windows? |
396 * Q6.2.3:: Where do I put my @file{.emacs} file? | 396 * Q6.2.3:: Where do I put my @file{init.el}/@file{.emacs} file? |
397 | 397 |
398 Miscellaneous: | 398 Miscellaneous: |
399 * Q6.3.1:: Will XEmacs rename all the win32-* symbols to w32-*? | 399 * Q6.3.1:: Will XEmacs rename all the win32-* symbols to w32-*? |
400 * Q6.3.2:: What are the differences between the various MS Windows emacsen? | 400 * Q6.3.2:: What are the differences between the various MS Windows emacsen? |
401 * Q6.3.3:: What is the porting team doing at the moment? | 401 * Q6.3.3:: What is the porting team doing at the moment? |
476 * Q1.3.5:: Please explain the various input methods in MULE/XEmacs | 476 * Q1.3.5:: Please explain the various input methods in MULE/XEmacs |
477 * Q1.3.6:: How do I portably code for MULE/XEmacs? | 477 * Q1.3.6:: How do I portably code for MULE/XEmacs? |
478 * Q1.3.7:: How about Cyrillic Modes? | 478 * Q1.3.7:: How about Cyrillic Modes? |
479 | 479 |
480 Getting Started: | 480 Getting Started: |
481 * Q1.4.1:: What is a @file{.emacs} and is there a sample one? | 481 * Q1.4.1:: What is an @file{init.el} or @file{.emacs} and is there a sample one? |
482 * Q1.4.2:: Can I use the same @file{.emacs} with the other Emacs? | 482 * Q1.4.2:: Can I use the same @file{init.el}/@file{.emacs} with the other Emacs? |
483 * Q1.4.3:: Any good XEmacs tutorials around? | 483 * Q1.4.3:: Any good XEmacs tutorials around? |
484 * Q1.4.4:: May I see an example of a useful XEmacs Lisp function? | 484 * Q1.4.4:: May I see an example of a useful XEmacs Lisp function? |
485 * Q1.4.5:: And how do I bind it to a key? | 485 * Q1.4.5:: And how do I bind it to a key? |
486 * Q1.4.6:: What's the difference between a macro and a function? | 486 * Q1.4.6:: What's the difference between a macro and a function? |
487 @end menu | 487 @end menu |
489 @node Q1.0.1, Q1.0.2, Introduction, Introduction | 489 @node Q1.0.1, Q1.0.2, Introduction, Introduction |
490 @unnumberedsec 1.0: Introduction | 490 @unnumberedsec 1.0: Introduction |
491 @unnumberedsubsec Q1.0.1: What is XEmacs? | 491 @unnumberedsubsec Q1.0.1: What is XEmacs? |
492 | 492 |
493 | 493 |
494 An alternative to GNU Emacs, originally based on an early alpha version | 494 XEmacs is a highly customizable open source text editor and application |
495 of FSF's version 19, and has diverged quite a bit since then. XEmacs | 495 development system. It is protected under the GNU Public License and |
496 was known as Lucid Emacs through version 19.10. Almost all features of | 496 related to other versions of Emacs, in particular GNU Emacs. Its |
497 GNU Emacs are supported in XEmacs. The maintainers of XEmacs actively | 497 emphasis is on modern graphical user interface support and an open |
498 track changes to GNU Emacs while also working to add new features. | 498 software development model, similar to Linux. XEmacs has an active |
499 development community numbering in the hundreds, and runs on Windows 95 | |
500 and NT, Linux and nearly every other version of Unix in | |
501 existence. Support for XEmacs has been supplied by Sun Microsystems, | |
502 University of Illinois, Lucid, ETL/Electrotechnical Laboratory, Amdahl | |
503 Corporation, BeOpen, and others, as well as the unpaid time of a great | |
504 number of individual developers. | |
499 | 505 |
500 @node Q1.0.2, Q1.0.3, Q1.0.1, Introduction | 506 @node Q1.0.2, Q1.0.3, Q1.0.1, Introduction |
501 @unnumberedsubsec Q1.0.2: What is the current version of XEmacs? | 507 @unnumberedsubsec Q1.0.2: What is the current version of XEmacs? |
502 | 508 |
503 XEmacs versions 21.1.* are releases made from the current stable | 509 XEmacs versions 21.1.* are releases made from the current stable |
536 @item | 542 @item |
537 The XEmacs maintainers are generally more receptive to suggestions than | 543 The XEmacs maintainers are generally more receptive to suggestions than |
538 the GNU Emacs maintainers. | 544 the GNU Emacs maintainers. |
539 | 545 |
540 @item | 546 @item |
541 Many more bundled packages than GNU Emacs | 547 Many more bundled packages than GNU Emacs. |
542 | 548 |
543 @item | 549 @item |
544 Binaries are available for many common operating systems. | 550 Binaries are available for many common operating systems. |
545 | 551 |
546 @item | 552 @item |
552 @item | 558 @item |
553 Better Motif compliance. | 559 Better Motif compliance. |
554 | 560 |
555 @item | 561 @item |
556 Some internationalization support (including full MULE support, if | 562 Some internationalization support (including full MULE support, if |
557 compiled with it.) | 563 compiled with it). |
558 | 564 |
559 @item | 565 @item |
560 Variable-width fonts. | 566 Variable-width fonts. |
561 | 567 |
562 @item | 568 @item |
583 The ability to embed arbitrary graphics in a buffer. | 589 The ability to embed arbitrary graphics in a buffer. |
584 | 590 |
585 @item | 591 @item |
586 Completely compatible (at the C level) with the Xt-based toolkits. | 592 Completely compatible (at the C level) with the Xt-based toolkits. |
587 | 593 |
588 @item | |
589 First production Web Browser supporting Style Sheets. | |
590 @end itemize | 594 @end itemize |
591 | 595 |
592 @node Q1.0.5, Q1.0.6, Q1.0.4, Introduction | 596 @node Q1.0.5, Q1.0.6, Q1.0.4, Introduction |
593 @unnumberedsubsec Q1.0.5: Why Haven't XEmacs and GNU Emacs Merged? | 597 @unnumberedsubsec Q1.0.5: Why Haven't XEmacs and GNU Emacs Merged? |
594 | 598 |
604 | 608 |
605 @node Q1.0.6, Q1.0.7, Q1.0.5, Introduction | 609 @node Q1.0.6, Q1.0.7, Q1.0.5, Introduction |
606 @unnumberedsubsec Q1.0.6: Where can I get help? | 610 @unnumberedsubsec Q1.0.6: Where can I get help? |
607 | 611 |
608 Probably the easiest way, if everything is installed, is to use Info, by | 612 Probably the easiest way, if everything is installed, is to use Info, by |
609 pressing @kbd{C-h i}, or selecting @code{Manuals->Info} from the | 613 pressing @kbd{C-h i}, or looking for an Info item on the |
610 Help Menu. @kbd{M-x apropos} can be used to look for particular commands. | 614 Help Menu. @kbd{M-x apropos} can be used to look for particular commands. |
611 | 615 |
612 For items not found in the manual, try reading this FAQ | 616 For items not found in the manual, try reading this FAQ |
613 @comment , examining the regular GNU Emacs FAQ (which can be | 617 @comment , examining the regular GNU Emacs FAQ (which can be |
614 @comment found with the Emacs 19 distribution) as well as at | 618 @comment found with the Emacs 19 distribution) as well as at |
628 @samp{unsubscribe} to be removed. | 632 @samp{unsubscribe} to be removed. |
629 | 633 |
630 @node Q1.0.7, Q1.0.8, Q1.0.6, Introduction | 634 @node Q1.0.7, Q1.0.8, Q1.0.6, Introduction |
631 @unnumberedsubsec Q1.0.7: Where are the mailing lists archived? | 635 @unnumberedsubsec Q1.0.7: Where are the mailing lists archived? |
632 | 636 |
633 The archives can be found at @uref{http://www.xemacs.org/Lists/Archive} | 637 The archives can be found at @uref{http://list-archive.xemacs.org} |
634 | 638 |
635 @node Q1.0.8, Q1.0.9, Q1.0.7, Introduction | 639 @node Q1.0.8, Q1.0.9, Q1.0.7, Introduction |
636 @unnumberedsubsec Q1.0.8: How do you pronounce XEmacs? | 640 @unnumberedsubsec Q1.0.8: How do you pronounce XEmacs? |
637 | 641 |
638 The most common pronounciation is @samp{Eks eemax}. | 642 The most common pronounciation is @samp{Eks eemax}. |
647 | 651 |
648 @node Q1.0.10, Q1.0.11, Q1.0.9, Introduction | 652 @node Q1.0.10, Q1.0.11, Q1.0.9, Introduction |
649 @unnumberedsubsec Q1.0.10: Is there a port of XEmacs to Microsoft ('95 or NT)? | 653 @unnumberedsubsec Q1.0.10: Is there a port of XEmacs to Microsoft ('95 or NT)? |
650 | 654 |
651 Yes, @xref{MS Windows}. | 655 Yes, @xref{MS Windows}. |
652 | |
653 @comment Thanks to efforts of many people, coordinated by | |
654 @comment @email{davidh@@wr.com.au, David Hobley} and @email{marcpa@@cam.org, Marc | |
655 @comment Paquette}, beta versions of XEmacs now run on 32-bit Windows platforms | |
656 @comment (NT and 95). The current betas require having an X server to run | |
657 @comment XEmacs; however, a native NT/95 port is in alpha, thanks to | |
658 @comment @email{jhar@@tardis.ed.ac.uk, Jonathan Harris}. | |
659 @comment | |
660 @comment Although some features are still unimplemented, XEmacs 21.0 will support | |
661 @comment MS-Windows. | |
662 @comment | |
663 @comment The NT development is now coordinated by a mailing list at | |
664 @comment @email{xemacs-nt@@xemacs.org}. | |
665 @comment | |
666 @comment If you are willing to contribute or want to follow the progress, mail to | |
667 @comment @iftex | |
668 @comment @* | |
669 @comment @end iftex | |
670 @comment @email{xemacs-nt-request@@xemacs.org} to subscribe. | |
671 @comment | |
672 @comment Furthermore, Altrasoft is seeking corporate and government sponsors to | |
673 @comment help fund a fully native port of XEmacs to Windows 95 and NT using | |
674 @comment full-time, senior-level staff working under a professionally managed | |
675 @comment project structure. See @uref{http://www.altrasoft.com/, the Altrasoft | |
676 @comment web site} for more details | |
677 @comment or contact Altrasoft directly at 1-888-ALTSOFT. | |
678 @comment | |
679 @comment | |
680 @comment The closest existing port is @dfn{Win-Emacs}, which is based on Lucid | |
681 @comment Emacs 19.6. Available from @uref{http://www.pearlsoft.com/}. | |
682 @comment | |
683 @comment There's a port of GNU Emacs (not XEmacs) at | |
684 @comment @example | |
685 @comment @uref{http://www.cs.washington.edu/homes/voelker/ntemacs.html}. | |
686 @comment @end example | |
687 | 656 |
688 @node Q1.0.11, Q1.0.12, Q1.0.10, Introduction | 657 @node Q1.0.11, Q1.0.12, Q1.0.10, Introduction |
689 @unnumberedsubsec Q1.0.11: Is there a port of XEmacs to the Macintosh? | 658 @unnumberedsubsec Q1.0.11: Is there a port of XEmacs to the Macintosh? |
690 @c changed | 659 @c changed |
691 | 660 |
784 @node Q1.2.1, Q1.2.2, Q1.1.3, Introduction | 753 @node Q1.2.1, Q1.2.2, Q1.1.3, Introduction |
785 @unnumberedsec 1.2: Credits | 754 @unnumberedsec 1.2: Credits |
786 @unnumberedsubsec Q1.2.1: Who wrote XEmacs? | 755 @unnumberedsubsec Q1.2.1: Who wrote XEmacs? |
787 | 756 |
788 XEmacs is the result of the time and effort of many people. The | 757 XEmacs is the result of the time and effort of many people. The |
789 developers responsible for the 19.16/20.x releases are: | 758 developers responsible for recent releases are: |
790 | 759 |
791 @itemize @bullet | 760 @itemize @bullet |
792 @item @email{martin@@xemacs.org, Martin Buchholz} | 761 @item @email{martin@@xemacs.org, Martin Buchholz} |
793 @html | 762 @html |
794 <br><img src="mrb.jpeg" alt="Portrait of Martin Buchholz"><br> | 763 <br><img src="mrb.jpeg" alt="Portrait of Martin Buchholz"><br> |
795 @end html | 764 @end html |
796 | 765 |
797 | 766 |
767 @item @email{turnbull@@sk.tsukuba.ac.jp, Steven Turnbull} | |
768 | |
769 | |
770 @item @email{ben@@xemacs.org, Ben Wing} | |
771 @html | |
772 <br><img src="wing.gif" alt="Portrait of Ben Wing"><br> | |
773 @end html | |
774 | |
775 | |
776 @item @email{hniksic@@xemacs.org, Hrvoje Niksic} | |
777 | |
778 @html | |
779 <br><img src="hniksic.jpeg" alt="Portrait of Hrvoje Niksic"><br> | |
780 @end html | |
781 | |
782 @end itemize | |
783 | |
784 The developers responsible for older releases were: | |
785 | |
786 @itemize @bullet | |
798 @item @email{steve@@xemacs.org, Steve Baur} | 787 @item @email{steve@@xemacs.org, Steve Baur} |
799 | 788 |
800 @html | 789 @html |
801 <br><img src="steve.gif" alt="Portrait of Steve Baur"><br> | 790 <br><img src="steve.gif" alt="Portrait of Steve Baur"><br> |
802 @end html | 791 @end html |
803 | 792 |
804 | |
805 @item @email{hniksic@@xemacs.org, Hrvoje Niksic} | |
806 | |
807 @html | |
808 <br><img src="hniksic.jpeg" alt="Portrait of Hrvoje Niksic"><br> | |
809 @end html | |
810 | |
811 @end itemize | |
812 | |
813 The developers responsible for the 19.14 release are: | |
814 | |
815 @itemize @bullet | |
816 @item @email{cthomp@@xemacs.org, Chuck Thompson} | 793 @item @email{cthomp@@xemacs.org, Chuck Thompson} |
817 @html | 794 @html |
818 <br><img src="cthomp.jpeg" alt="Portrait of Chuck Thompson"><br> | 795 <br><img src="cthomp.jpeg" alt="Portrait of Chuck Thompson"><br> |
819 @end html | 796 @end html |
820 | 797 |
821 Chuck was Mr. XEmacs from 19.11 through 19.14, and is responsible | |
822 for XEmacs becoming a widely distributed program over the Internet. | |
823 | |
824 @item @email{ben@@xemacs.org, Ben Wing} | |
825 @html | |
826 <br><img src="wing.gif" alt="Portrait of Ben Wing"><br> | |
827 @end html | |
828 | |
829 @end itemize | |
830 | |
831 | |
832 @itemize @bullet | |
833 @item @email{jwz@@jwz.org, Jamie Zawinski} | 798 @item @email{jwz@@jwz.org, Jamie Zawinski} |
834 @html | 799 @html |
835 <br><img src="jwz.gif" alt="Portrait of Jamie Zawinski"><br> | 800 <br><img src="jwz.gif" alt="Portrait of Jamie Zawinski"><br> |
836 @end html | 801 @end html |
837 | 802 |
838 Jamie Zawinski was Mr. Lucid Emacs from 19.0 through 19.10, the last | |
839 release actually named Lucid Emacs. Richard Mlynarik was crucial to | |
840 most of those releases. | |
841 | |
842 @item @email{mly@@adoc.xerox.com, Richard Mlynarik} | 803 @item @email{mly@@adoc.xerox.com, Richard Mlynarik} |
804 | |
805 Steve Baur was the primary maintainer for 19.15 through 21.0. | |
806 | |
807 Chuck Thompson and Ben Wing were the maintainers for 19.11 through 19.14 | |
808 and heavy code contributors for 19.8 through 19.10. | |
809 | |
810 Jamie Zawinski was the maintainer for 19.0 through 19.10 (the entire | |
811 history of Lucid Emacs). Richard Mlynarik was a heavy code contributor | |
812 to 19.6 through 19.8. | |
813 | |
843 @end itemize | 814 @end itemize |
844 | 815 |
845 Along with many other contributors, partially enumerated in the | 816 Along with many other contributors, partially enumerated in the |
846 @samp{About XEmacs} option in the Help menu. | 817 @samp{About XEmacs} option in the Help menu. |
847 | 818 |
1087 XEmacs) is @uref{http://sunsite.oit.unc.edu/sergei/Software/Software.html} | 1058 XEmacs) is @uref{http://sunsite.oit.unc.edu/sergei/Software/Software.html} |
1088 @end quotation | 1059 @end quotation |
1089 | 1060 |
1090 @node Q1.4.1, Q1.4.2, Q1.3.7, Introduction | 1061 @node Q1.4.1, Q1.4.2, Q1.3.7, Introduction |
1091 @unnumberedsec 1.4: Getting Started, Backing up & Recovery | 1062 @unnumberedsec 1.4: Getting Started, Backing up & Recovery |
1092 @unnumberedsubsec Q1.4.1: What is a @file{.emacs} and is there a sample one? | 1063 @unnumberedsubsec Q1.4.1: What is an @file{init.el} or @file{.emacs} and is there a sample one? |
1093 | 1064 |
1094 The @file{.emacs} file is used to customize XEmacs to your tastes. No | 1065 The @file{init.el} or @file{.emacs} file is used to customize XEmacs to |
1095 two are alike, nor are they expected to be alike, but that's the point. | 1066 your tastes. Starting in 21.4, the preferred location for the init file |
1096 The XEmacs distribution contains an excellent starter example in the etc | 1067 is @file{~/.xemacs/init.el}; in previous versions, it was |
1097 directory called @file{sample.emacs}. Copy this file from there to your | 1068 @file{~/.emacs}. 21.4 still accepts the old location, but the first |
1098 home directory and rename it @file{.emacs}. Then edit it to suit. | 1069 time you run it, it will ask to migrate your file to the new location. |
1099 | 1070 If you answer yes, the file will be moved, and a "compatibility" |
1100 Starting with 19.14, you may bring the @file{sample.emacs} into an | 1071 @file{.emacs} file will be placed in the old location so that you can |
1101 XEmacs buffer by selecting @samp{Help->Sample .emacs} from the menubar. | 1072 still run older versions of XEmacs, and versions of GNU Emacs, which |
1102 To determine the location of the @file{etc} directory type the command | 1073 expect the old location. The @file{.emacs} file present is just a stub |
1074 that loads the real file in @file{~/.xemacs/init.el}. | |
1075 | |
1076 No two init files are alike, nor are they expected to be alike, but | |
1077 that's the point. The XEmacs distribution contains an excellent starter | |
1078 example in the @file{etc/} directory called @file{sample.init.el} | |
1079 (starting in 21.4) or @file{sample.emacs} in older versions. Copy this | |
1080 file from there to @file{~/.xemacs/init.el} (starting in 21.4) or | |
1081 @file{~/.emacs} in older versions, where @samp{~} means your home | |
1082 directory, of course. Then edit it to suit. | |
1083 | |
1084 You may bring the @file{sample.init.el} or @file{sample.emacs} file into | |
1085 an XEmacs buffer from the menubar. (The menu entry for it is always | |
1086 under the @samp{Help} menu, but its location under that has changed in | |
1087 various versions. Recently, look under the @samp{Samples} submenu.) To | |
1088 determine the location of the @file{etc/} directory type the command | |
1103 @kbd{C-h v data-directory @key{RET}}. | 1089 @kbd{C-h v data-directory @key{RET}}. |
1104 | 1090 |
1105 @node Q1.4.2, Q1.4.3, Q1.4.1, Introduction | 1091 @node Q1.4.2, Q1.4.3, Q1.4.1, Introduction |
1106 @unnumberedsubsec Q1.4.2: Can I use the same @file{.emacs} with the other Emacs? | 1092 @unnumberedsubsec Q1.4.2: Can I use the same @file{init.el}/@file{.emacs} with the other Emacs? |
1107 | 1093 |
1108 Yes. The sample @file{.emacs} included in the XEmacs distribution will | 1094 Yes. The sample @file{init.el}/@file{.emacs} included in the XEmacs |
1109 show you how to handle different versions and flavors of Emacs. | 1095 distribution will show you how to handle different versions and flavors |
1096 of Emacs. | |
1110 | 1097 |
1111 @node Q1.4.3, Q1.4.4, Q1.4.2, Introduction | 1098 @node Q1.4.3, Q1.4.4, Q1.4.2, Introduction |
1112 @unnumberedsubsec Q1.4.3: Any good tutorials around? | 1099 @unnumberedsubsec Q1.4.3: Any good tutorials around? |
1113 | 1100 |
1114 There's the XEmacs tutorial available from the Help Menu under | 1101 There's the XEmacs tutorial available from the Help Menu under |
1541 Now, during the dump itself, the executable (code+data+symbols) is | 1528 Now, during the dump itself, the executable (code+data+symbols) is |
1542 written on disk using a special unexec() function. This function is | 1529 written on disk using a special unexec() function. This function is |
1543 obviously heavily system dependent. And on some systems, it leads to an | 1530 obviously heavily system dependent. And on some systems, it leads to an |
1544 executable which, although valid, cannot be stripped without damage. If | 1531 executable which, although valid, cannot be stripped without damage. If |
1545 memory serves, this is especially the case for AIX binaries. On other | 1532 memory serves, this is especially the case for AIX binaries. On other |
1546 architecture it might work OK. | 1533 architectures it might work OK. |
1547 | 1534 |
1548 The Right Way to strip the emacs binary is to strip temacs prior to | 1535 The Right Way to strip the emacs binary is to strip temacs prior to |
1549 dumping xemacs. This will always work, although you can do that only if | 1536 dumping xemacs. This will always work, although you can do that only if |
1550 you install from sources (as temacs is @file{not} part of the binary | 1537 you install from sources (as temacs is @file{not} part of the binary |
1551 kits). | 1538 kits). |
1626 killed the XEmacs process using @code{kill -9}). The next time you try | 1613 killed the XEmacs process using @code{kill -9}). The next time you try |
1627 to edit those files, you will be informed that a more recent auto-save | 1614 to edit those files, you will be informed that a more recent auto-save |
1628 file exists. You can use @kbd{M-x recover-file} to retrieve the | 1615 file exists. You can use @kbd{M-x recover-file} to retrieve the |
1629 auto-saved version of the file. | 1616 auto-saved version of the file. |
1630 | 1617 |
1631 Starting with 19.14, you may use the command @kbd{M-x recover-session} | 1618 You can use the command @kbd{M-x recover-session} after a crash to pick |
1632 after a crash to pick up where you left off. | 1619 up where you left off. |
1633 | 1620 |
1634 Now, XEmacs is not perfect, and there may occasionally be times, or | 1621 Now, XEmacs is not perfect, and there may occasionally be times, or |
1635 particular sequences of actions, that cause it to crash. If you can | 1622 particular sequences of actions, that cause it to crash. If you can |
1636 come up with a reproducible way of doing this (or even if you have a | 1623 come up with a reproducible way of doing this (or even if you have a |
1637 pretty good memory of exactly what you were doing at the time), the | 1624 pretty good memory of exactly what you were doing at the time), the |
1711 | 1698 |
1712 @item | 1699 @item |
1713 Reproduce the error. | 1700 Reproduce the error. |
1714 @end enumerate | 1701 @end enumerate |
1715 | 1702 |
1716 Depending on the version of XEmacs, you may either select Edit->Show | 1703 Depending on the version of XEmacs, you may either select View->Show |
1717 Messages (19.13 and earlier) or Help->Recent Keystrokes/Messages (19.14 | 1704 Message Log (recent versions), Edit->Show Messages (some earlier |
1718 and later) from the menubar to see the most recent messages. This | 1705 versions) or Help->Recent Keystrokes/Messages (other earlier versions) |
1719 command is bound to @kbd{C-h l} by default. | 1706 from the menubar to see the most recent messages. This command is bound |
1707 to @kbd{C-h l} by default. | |
1720 | 1708 |
1721 @node Q2.1.3, Q2.1.4, Q2.1.2, Installation | 1709 @node Q2.1.3, Q2.1.4, Q2.1.2, Installation |
1722 @unnumberedsubsec Q2.1.3: Translation Table Syntax messages at Startup | 1710 @unnumberedsubsec Q2.1.3: Translation Table Syntax messages at Startup |
1723 | 1711 |
1724 I get tons of translation table syntax error messages during startup. | 1712 I get tons of translation table syntax error messages during startup. |
1862 @node Q2.1.9, Q2.1.10, Q2.1.8, Installation | 1850 @node Q2.1.9, Q2.1.10, Q2.1.8, Installation |
1863 @unnumberedsubsec Q2.1.9: XEmacs causes my OpenWindows 3.0 server to crash. | 1851 @unnumberedsubsec Q2.1.9: XEmacs causes my OpenWindows 3.0 server to crash. |
1864 | 1852 |
1865 The OpenWindows 3.0 server is incredibly buggy. Your best bet is to | 1853 The OpenWindows 3.0 server is incredibly buggy. Your best bet is to |
1866 replace it with one from the generic MIT X11 release. You might also | 1854 replace it with one from the generic MIT X11 release. You might also |
1867 try disabling parts of your @file{.emacs}, like enabling background | 1855 try disabling parts of your @file{init.el}/@file{.emacs}, like those |
1868 pixmaps. | 1856 that enable background pixmaps. |
1869 | 1857 |
1870 @node Q2.1.10, Q2.1.11, Q2.1.9, Installation | 1858 @node Q2.1.10, Q2.1.11, Q2.1.9, Installation |
1871 @unnumberedsubsec Q2.1.10: Warnings from incorrect key modifiers. | 1859 @unnumberedsubsec Q2.1.10: Warnings from incorrect key modifiers. |
1872 | 1860 |
1873 The following information comes from the @file{PROBLEMS} file that comes | 1861 The following information comes from the @file{PROBLEMS} file that comes |
2169 have no idea why GDB under Linux is so bogus. Complain to the GDB | 2157 have no idea why GDB under Linux is so bogus. Complain to the GDB |
2170 authors, or to comp.os.linux.development.system). Again, you'll have to | 2158 authors, or to comp.os.linux.development.system). Again, you'll have to |
2171 use the narrowing-down process described above. | 2159 use the narrowing-down process described above. |
2172 | 2160 |
2173 @item | 2161 @item |
2174 If you compiled 19.14 with @samp{--debug} (or by default in later | 2162 You will get a Lisp backtrace output when XEmacs crashes, so you'll have |
2175 versions), you will get a Lisp backtrace output when XEmacs crashes, so | 2163 something useful. |
2176 you'll have something useful. | |
2177 | 2164 |
2178 @end enumerate | 2165 @end enumerate |
2179 | 2166 |
2180 @item | 2167 @item |
2181 If you compile with the newer gcc variants gcc-2.8 or egcs, you will | 2168 If you compile with the newer gcc variants gcc-2.8 or egcs, you will |
2242 | 2229 |
2243 @lisp | 2230 @lisp |
2244 (set-time-zone-rule "MET") | 2231 (set-time-zone-rule "MET") |
2245 @end lisp | 2232 @end lisp |
2246 | 2233 |
2247 to your @file{.emacs} or the @file{site-start.el} file if you can. | 2234 to your @file{init.el}/@file{.emacs} or the @file{site-start.el} file if |
2248 Replace @code{MET} with your local timezone. | 2235 you can. Replace @code{MET} with your local timezone. |
2249 | 2236 |
2250 @node Q2.1.20, Q2.1.21, Q2.1.19, Installation | 2237 @node Q2.1.20, Q2.1.21, Q2.1.19, Installation |
2251 @unnumberedsubsec Q2.1.20: @samp{Symbol's function definition is void: hkey-help-show.} | 2238 @unnumberedsubsec Q2.1.20: @samp{Symbol's function definition is void: hkey-help-show.} |
2252 | 2239 |
2253 This is a problem with a partially loaded hyperbole. Try adding: | 2240 This is a problem with a partially loaded hyperbole. Try adding: |
2345 | 2332 |
2346 This is part 3 of the XEmacs Frequently Asked Questions list. This | 2333 This is part 3 of the XEmacs Frequently Asked Questions list. This |
2347 section is devoted to Customization and screen settings. | 2334 section is devoted to Customization and screen settings. |
2348 | 2335 |
2349 @menu | 2336 @menu |
2350 Customization---Emacs Lisp and @file{.emacs}: | 2337 Customization---Emacs Lisp and @file{init.el}/@file{.emacs}: |
2351 * Q3.0.1:: What version of Emacs am I running? | 2338 * Q3.0.1:: What version of Emacs am I running? |
2352 * Q3.0.2:: How do I evaluate Elisp expressions? | 2339 * Q3.0.2:: How do I evaluate Elisp expressions? |
2353 * Q3.0.3:: @code{(setq tab-width 6)} behaves oddly. | 2340 * Q3.0.3:: @code{(setq tab-width 6)} behaves oddly. |
2354 * Q3.0.4:: How can I add directories to the @code{load-path}? | 2341 * Q3.0.4:: How can I add directories to the @code{load-path}? |
2355 * Q3.0.5:: How to check if a lisp function is defined? | 2342 * Q3.0.5:: How to check if a lisp function is defined? |
2367 * Q3.1.6:: How can I have the window title area display the full path? | 2354 * Q3.1.6:: How can I have the window title area display the full path? |
2368 * Q3.1.7:: @samp{xemacs -name junk} doesn't work? | 2355 * Q3.1.7:: @samp{xemacs -name junk} doesn't work? |
2369 * Q3.1.8:: @samp{-iconic} doesn't work. | 2356 * Q3.1.8:: @samp{-iconic} doesn't work. |
2370 | 2357 |
2371 Textual Fonts & Colors: | 2358 Textual Fonts & Colors: |
2372 * Q3.2.1:: How can I set color options from @file{.emacs}? | 2359 * Q3.2.1:: How can I set color options from @file{init.el}/@file{.emacs}? |
2373 * Q3.2.2:: How do I set the text, menu and modeline fonts? | 2360 * Q3.2.2:: How do I set the text, menu and modeline fonts? |
2374 * Q3.2.3:: How can I set the colors when highlighting a region? | 2361 * Q3.2.3:: How can I set the colors when highlighting a region? |
2375 * Q3.2.4:: How can I limit color map usage? | 2362 * Q3.2.4:: How can I limit color map usage? |
2376 * Q3.2.5:: My tty supports color, but XEmacs doesn't use them. | 2363 * Q3.2.5:: My tty supports color, but XEmacs doesn't use them. |
2377 * Q3.2.6:: Can I have pixmap backgrounds in XEmacs? | 2364 * Q3.2.6:: Can I have pixmap backgrounds in XEmacs? |
2393 * Q3.5.3:: How do I bind C-. and C-; to scroll one line up and down? | 2380 * Q3.5.3:: How do I bind C-. and C-; to scroll one line up and down? |
2394 * Q3.5.4:: Globally binding @kbd{Delete}? | 2381 * Q3.5.4:: Globally binding @kbd{Delete}? |
2395 * Q3.5.5:: Scrolling one line at a time. | 2382 * Q3.5.5:: Scrolling one line at a time. |
2396 * Q3.5.6:: How to map @kbd{Help} key alone on Sun type4 keyboard? | 2383 * Q3.5.6:: How to map @kbd{Help} key alone on Sun type4 keyboard? |
2397 * Q3.5.7:: How can you type in special characters in XEmacs? | 2384 * Q3.5.7:: How can you type in special characters in XEmacs? |
2398 * Q3.5.8:: Why does @code{(global-set-key [delete-forward] 'delete-char)} complain? | 2385 * Q3.5.8:: [This question intentionally left blank] |
2399 * Q3.5.9:: How do I make the Delete key delete forward? | 2386 * Q3.5.9:: How do I make the Delete key delete forward? |
2400 * Q3.5.10:: Can I turn on @dfn{sticky} modifier keys? | 2387 * Q3.5.10:: Can I turn on @dfn{sticky} modifier keys? |
2401 * Q3.5.11:: How do I map the arrow keys? | 2388 * Q3.5.11:: How do I map the arrow keys? |
2402 | 2389 |
2403 The Cursor: | 2390 The Cursor: |
2424 | 2411 |
2425 Scrollbars: | 2412 Scrollbars: |
2426 * Q3.9.1:: How can I disable the scrollbar? | 2413 * Q3.9.1:: How can I disable the scrollbar? |
2427 * Q3.9.2:: How can one use resources to change scrollbar colors? | 2414 * Q3.9.2:: How can one use resources to change scrollbar colors? |
2428 * Q3.9.3:: Moving the scrollbar can move the point; can I disable this? | 2415 * Q3.9.3:: Moving the scrollbar can move the point; can I disable this? |
2429 * Q3.9.4:: How can I get automatic horizontal scrolling? | 2416 * Q3.9.4:: How can I turn off automatic horizontal scrolling in specific modes? |
2430 | 2417 |
2431 Text Selections: | 2418 Text Selections: |
2432 * Q3.10.1:: How can I turn off or change highlighted selections? | 2419 * Q3.10.1:: How can I turn off or change highlighted selections? |
2433 * Q3.10.2:: How do I get that typing on an active region removes it? | 2420 * Q3.10.2:: How do I get that typing on an active region removes it? |
2434 * Q3.10.3:: Can I turn off the highlight during isearch? | 2421 * Q3.10.3:: Can I turn off the highlight during isearch? |
2435 * Q3.10.4:: How do I turn off highlighting after @kbd{C-x C-p} (mark-page)? | 2422 * Q3.10.4:: How do I turn off highlighting after @kbd{C-x C-p} (mark-page)? |
2436 * Q3.10.5:: The region disappears when I hit the end of buffer while scrolling. | 2423 * Q3.10.5:: The region disappears when I hit the end of buffer while scrolling. |
2437 @end menu | 2424 @end menu |
2438 | 2425 |
2439 @node Q3.0.1, Q3.0.2, Customization, Customization | 2426 @node Q3.0.1, Q3.0.2, Customization, Customization |
2440 @unnumberedsec 3.0: Customization -- Emacs Lisp and .emacs | 2427 @unnumberedsec 3.0: Customization -- Emacs Lisp and @file{init.el}/@file{.emacs} |
2441 @unnumberedsubsec Q3.0.1: What version of Emacs am I running? | 2428 @unnumberedsubsec Q3.0.1: What version of Emacs am I running? |
2442 | 2429 |
2443 How can @file{.emacs} determine which of the family of Emacsen I am | 2430 How can @file{init.el}/@file{.emacs} determine which of the family of |
2444 using? | 2431 Emacsen I am using? |
2445 | 2432 |
2446 To determine if you are currently running GNU Emacs 18, GNU Emacs 19, | 2433 To determine if you are currently running GNU Emacs 18, GNU Emacs 19, |
2447 XEmacs 19, XEmacs 20, or Epoch, and use appropriate code, check out the | 2434 XEmacs 19, XEmacs 20, or Epoch, and use appropriate code, check out the |
2448 example given in @file{etc/sample.emacs}. There are other nifty things | 2435 example given in @file{etc/sample.init.el} (@file{etc/sample.emacs} in |
2449 in there as well! | 2436 XEmacs versions prior to 21.4). There are other nifty things in there |
2437 as well! | |
2450 | 2438 |
2451 For all new code, all you really need to do is: | 2439 For all new code, all you really need to do is: |
2452 | 2440 |
2453 @lisp | 2441 @lisp |
2454 (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version)) | 2442 (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version)) |
2460 I know I can evaluate Elisp expressions from @code{*scratch*} buffer | 2448 I know I can evaluate Elisp expressions from @code{*scratch*} buffer |
2461 with @kbd{C-j} after the expression. How do I do it from another | 2449 with @kbd{C-j} after the expression. How do I do it from another |
2462 buffer? | 2450 buffer? |
2463 | 2451 |
2464 Press @kbd{M-:} (the default binding of @code{eval-expression}), and | 2452 Press @kbd{M-:} (the default binding of @code{eval-expression}), and |
2465 enter the expression to the minibuffer. In XEmacs prior to 19.15 | 2453 enter the expression to the minibuffer. |
2466 @code{eval-expression} used to be a disabled command by default. If | |
2467 this is the case, upgrade your XEmacs. | |
2468 | 2454 |
2469 @node Q3.0.3, Q3.0.4, Q3.0.2, Customization | 2455 @node Q3.0.3, Q3.0.4, Q3.0.2, Customization |
2470 @unnumberedsubsec Q3.0.3: @code{(setq tab-width 6)} behaves oddly. | 2456 @unnumberedsubsec Q3.0.3: @code{(setq tab-width 6)} behaves oddly. |
2471 | 2457 |
2472 If you put @code{(setq tab-width 6)} in your @file{.emacs} file it does | 2458 If you put @code{(setq tab-width 6)} in your |
2473 not work! Is there a reason for this? If you do it at the EVAL prompt | 2459 @file{init.el}/@file{.emacs} file it does not work! Is there a reason |
2474 it works fine!! How strange. | 2460 for this? If you do it at the EVAL prompt it works fine!! How strange. |
2475 | 2461 |
2476 Use @code{setq-default} instead, since @code{tab-width} is | 2462 Use @code{setq-default} instead, since @code{tab-width} is |
2477 all-buffer-local. | 2463 all-buffer-local. |
2478 | 2464 |
2479 @node Q3.0.4, Q3.0.5, Q3.0.3, Customization | 2465 @node Q3.0.4, Q3.0.5, Q3.0.3, Customization |
2542 simply press @kbd{C-h l} to get the former minibuffer contents in a | 2528 simply press @kbd{C-h l} to get the former minibuffer contents in a |
2543 buffer. | 2529 buffer. |
2544 | 2530 |
2545 @node Q3.0.7, Q3.0.8, Q3.0.6, Customization | 2531 @node Q3.0.7, Q3.0.8, Q3.0.6, Customization |
2546 @unnumberedsubsec Q3.0.7: Font selections in don't get saved after @code{Save Options}. | 2532 @unnumberedsubsec Q3.0.7: Font selections in don't get saved after @code{Save Options}. |
2547 | |
2548 For XEmacs 19.14 and previous: | |
2549 | 2533 |
2550 @email{mannj@@ll.mit.edu, John Mann} writes: | 2534 @email{mannj@@ll.mit.edu, John Mann} writes: |
2551 | 2535 |
2552 @quotation | 2536 @quotation |
2553 You have to go to Options->Frame Appearance and unselect | 2537 You have to go to Options->Frame Appearance and unselect |
2554 @samp{Frame-Local Font Menu}. If this option is selected, font changes | 2538 @samp{Frame-Local Font Menu}. If this option is selected, font changes |
2555 are only applied to the @emph{current} frame and do @emph{not} get saved | 2539 are only applied to the @emph{current} frame and do @emph{not} get saved |
2556 when you save options. | 2540 when you save options. |
2557 @end quotation | 2541 @end quotation |
2558 | 2542 |
2559 For XEmacs 19.15 and later: | 2543 Also, set the following in your @file{init.el}/@file{.emacs}: |
2560 | |
2561 Implement the above as well as set the following in your @file{.emacs} | |
2562 | 2544 |
2563 @lisp | 2545 @lisp |
2564 (setq options-save-faces t) | 2546 (setq options-save-faces t) |
2565 @end lisp | 2547 @end lisp |
2566 | 2548 |
2643 @unnumberedsubsec Q3.1.5: How can I get the icon to just say @samp{XEmacs}? | 2625 @unnumberedsubsec Q3.1.5: How can I get the icon to just say @samp{XEmacs}? |
2644 | 2626 |
2645 I'd like the icon to just say @samp{XEmacs}, and not include the name of | 2627 I'd like the icon to just say @samp{XEmacs}, and not include the name of |
2646 the current file in it. | 2628 the current file in it. |
2647 | 2629 |
2648 Add the following line to your @file{.emacs}: | 2630 Add the following line to your @file{init.el}/@file{.emacs}: |
2649 | 2631 |
2650 @lisp | 2632 @lisp |
2651 (setq frame-icon-title-format "XEmacs") | 2633 (setq frame-icon-title-format "XEmacs") |
2652 @end lisp | 2634 @end lisp |
2653 | 2635 |
2655 @unnumberedsubsec Q3.1.6: How can I have the window title area display the full path? | 2637 @unnumberedsubsec Q3.1.6: How can I have the window title area display the full path? |
2656 | 2638 |
2657 I'd like to have the window title area display the full directory/name | 2639 I'd like to have the window title area display the full directory/name |
2658 of the current buffer file and not just the name. | 2640 of the current buffer file and not just the name. |
2659 | 2641 |
2660 Add the following line to your @file{.emacs}: | 2642 Add the following line to your @file{init.el}/@file{.emacs}: |
2661 | 2643 |
2662 @lisp | 2644 @lisp |
2663 (setq frame-title-format "%S: %f") | 2645 (setq frame-title-format "%S: %f") |
2664 @end lisp | 2646 @end lisp |
2665 | 2647 |
2739 bugs... | 2721 bugs... |
2740 @end quotation | 2722 @end quotation |
2741 | 2723 |
2742 @node Q3.2.1, Q3.2.2, Q3.1.8, Customization | 2724 @node Q3.2.1, Q3.2.2, Q3.1.8, Customization |
2743 @unnumberedsec 3.2: Textual Fonts & Colors | 2725 @unnumberedsec 3.2: Textual Fonts & Colors |
2744 @unnumberedsubsec Q3.2.1: How can I set color options from @file{.emacs}? | 2726 @unnumberedsubsec Q3.2.1: How can I set color options from @file{init.el}/@file{.emacs}? |
2745 | 2727 |
2746 How can I set the most commonly used color options from my @file{.emacs} | 2728 How can I set the most commonly used color options from my |
2747 instead of from my @file{.Xdefaults}? | 2729 @file{init.el}/@file{.emacs} instead of from my @file{.Xdefaults}? |
2748 | 2730 |
2749 Like this: | 2731 Like this: |
2750 | 2732 |
2751 @lisp | 2733 @lisp |
2752 (set-face-background 'default "bisque") ; frame background | 2734 (set-face-background 'default "bisque") ; frame background |
2805 @example | 2787 @example |
2806 Emacs.zmacs-region.attributeForeground: firebrick | 2788 Emacs.zmacs-region.attributeForeground: firebrick |
2807 Emacs.zmacs-region.attributeBackground: lightseagreen | 2789 Emacs.zmacs-region.attributeBackground: lightseagreen |
2808 @end example | 2790 @end example |
2809 | 2791 |
2810 or in your @file{.emacs}: | 2792 or in your @file{init.el}/@file{.emacs}: |
2811 | 2793 |
2812 @lisp | 2794 @lisp |
2813 (set-face-background 'zmacs-region "red") | 2795 (set-face-background 'zmacs-region "red") |
2814 (set-face-foreground 'zmacs-region "yellow") | 2796 (set-face-foreground 'zmacs-region "yellow") |
2815 @end lisp | 2797 @end lisp |
2816 | 2798 |
2817 @node Q3.2.4, Q3.2.5, Q3.2.3, Customization | 2799 @node Q3.2.4, Q3.2.5, Q3.2.3, Customization |
2818 @unnumberedsubsec Q3.2.4: How can I limit color map usage? | 2800 @unnumberedsubsec Q3.2.4: How can I limit color map usage? |
2819 | 2801 |
2820 I'm using Netscape (or another color grabber like XEmacs); | 2802 I'm using Netscape (or another color grabber like XEmacs); |
2821 is there anyway to limit the number of available colors in the color map? | 2803 is there any way to limit the number of available colors in the color map? |
2822 | 2804 |
2823 XEmacs 19.13 didn't have such a mechanism (unlike netscape, or other | 2805 Answer: No, but you can start Netscape before XEmacs, and it will use |
2824 color-hogs). One solution is to start XEmacs prior to netscape, since | 2806 the closest available color if the colormap is full. You can also limit |
2825 this will prevent Netscape from grabbing all colors (but Netscape will | 2807 the number of colors Netscape uses, using the flags -mono, -ncols <#> or |
2826 complain). You can use the flags for Netscape, like -mono, -ncols <#> | 2808 -install (for mono, limiting to <#> colors, or for using a private color |
2827 or -install (for mono, limiting to <#> colors, or for using a private | 2809 map). |
2828 color map). Since Netscape will take the entire colormap and never | |
2829 release it, the only reasonable way to run it is with @samp{-install}. | |
2830 | 2810 |
2831 If you have the money, another solution would be to use a truecolor or | 2811 If you have the money, another solution would be to use a truecolor or |
2832 direct color video. | 2812 direct color video. |
2833 | |
2834 Starting with XEmacs 19.14, XEmacs uses the closest available color if | |
2835 the colormap is full, so it's O.K. now to start Netscape first. | |
2836 | 2813 |
2837 @node Q3.2.5, Q3.2.6, Q3.2.4, Customization | 2814 @node Q3.2.5, Q3.2.6, Q3.2.4, Customization |
2838 @unnumberedsubsec Q3.2.5: My tty supports color, but XEmacs doesn't use them. | 2815 @unnumberedsubsec Q3.2.5: My tty supports color, but XEmacs doesn't use them. |
2839 | 2816 |
2840 XEmacs tries to automatically determine whether your tty supports color, | 2817 XEmacs tries to automatically determine whether your tty supports color, |
2880 | 2857 |
2881 @lisp | 2858 @lisp |
2882 (set-specifier has-modeline-p nil) | 2859 (set-specifier has-modeline-p nil) |
2883 @end lisp | 2860 @end lisp |
2884 | 2861 |
2885 Starting with XEmacs 19.14 the modeline responds to mouse clicks, so if | 2862 @c Starting with XEmacs 19.14 the modeline responds to mouse clicks, so if |
2886 you haven't liked or used the modeline in the past, you might want to | 2863 @c you haven't liked or used the modeline in the past, you might want to |
2887 try the new version out. | 2864 @c try the new version out. |
2888 | 2865 @c |
2889 @node Q3.3.2, Q3.3.3, Q3.3.1, Customization | 2866 @node Q3.3.2, Q3.3.3, Q3.3.1, Customization |
2890 @unnumberedsubsec Q3.3.2: How do you have XEmacs display the line number in the modeline? | 2867 @unnumberedsubsec Q3.3.2: How do you have XEmacs display the line number in the modeline? |
2891 | 2868 |
2892 Add the following line to your @file{.emacs} file to display the | 2869 Add the following line to your @file{init.el}/@file{.emacs} file to |
2893 line number: | 2870 display the line number: |
2894 | 2871 |
2895 @lisp | 2872 @lisp |
2896 (line-number-mode 1) | 2873 (line-number-mode 1) |
2897 @end lisp | 2874 @end lisp |
2898 | 2875 |
2904 | 2881 |
2905 Or select from the @code{Options} menu | 2882 Or select from the @code{Options} menu |
2906 @iftex | 2883 @iftex |
2907 @* | 2884 @* |
2908 @end iftex | 2885 @end iftex |
2909 @code{Customize->Emacs->Editing->Basics->Line Number Mode} | 2886 @code{Advanced (Customize)->Emacs->Editing->Basics->Line Number Mode} |
2910 and/or | 2887 and/or |
2911 @iftex | 2888 @iftex |
2912 @* | 2889 @* |
2913 @end iftex | 2890 @end iftex |
2914 @code{Customize->Emacs->Editing->Basics->Column Number Mode} | 2891 @code{Advanced (Customize)->Emacs->Editing->Basics->Column Number Mode} |
2915 | 2892 |
2916 Or type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. | 2893 Or type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. |
2917 | 2894 |
2918 @node Q3.3.3, Q3.3.4, Q3.3.2, Customization | 2895 @node Q3.3.3, Q3.3.4, Q3.3.2, Customization |
2919 @unnumberedsubsec Q3.3.3: How do I get XEmacs to put the time of day on the modeline? | 2896 @unnumberedsubsec Q3.3.3: How do I get XEmacs to put the time of day on the modeline? |
2920 | 2897 |
2921 Add the following line to your @file{.emacs} file to display the | 2898 Add the following line to your @file{init.el}/@file{.emacs} file to |
2922 time: | 2899 display the time: |
2923 | 2900 |
2924 @lisp | 2901 @lisp |
2925 (display-time) | 2902 (display-time) |
2926 @end lisp | 2903 @end lisp |
2927 | 2904 |
2932 | 2909 |
2933 With AUC TeX, fast typing is hard because the current chapter, section | 2910 With AUC TeX, fast typing is hard because the current chapter, section |
2934 etc. are given in the modeline. How can I turn this off? | 2911 etc. are given in the modeline. How can I turn this off? |
2935 | 2912 |
2936 It's not AUC TeX, it comes from @code{func-menu} in @file{func-menu.el}. | 2913 It's not AUC TeX, it comes from @code{func-menu} in @file{func-menu.el}. |
2937 Add this code to your @file{.emacs} to turn it off: | 2914 |
2938 | 2915 @c Add this code to your @file{init.el}/@file{.emacs} to turn it off: |
2939 @lisp | 2916 @c |
2940 (setq fume-display-in-modeline-p nil) | 2917 @c @lisp |
2941 @end lisp | 2918 @c (setq fume-display-in-modeline-p nil) |
2942 | 2919 @c @end lisp |
2943 Or just add a hook to @code{TeX-mode-hook} to turn it off only for TeX | 2920 @c |
2944 mode: | 2921 @c Or just add a hook to @code{TeX-mode-hook} to turn it off only for TeX |
2945 | 2922 @c mode: |
2946 @lisp | 2923 @c |
2947 (add-hook 'TeX-mode-hook | 2924 @c @lisp |
2948 '(lambda () (setq fume-display-in-modeline-p nil))) | 2925 @c (add-hook 'TeX-mode-hook |
2949 @end lisp | 2926 @c '(lambda () (setq fume-display-in-modeline-p nil))) |
2950 | 2927 @c @end lisp |
2928 @c | |
2951 @email{dhughes@@origin-at.co.uk, David Hughes} writes: | 2929 @email{dhughes@@origin-at.co.uk, David Hughes} writes: |
2952 | 2930 |
2953 @quotation | 2931 @quotation |
2954 If you have 19.14 or later, try this instead; you'll still get the | 2932 Try this; you'll still get the function name displayed in the modeline, |
2955 function name displayed in the modeline, but it won't attempt to keep | 2933 but it won't attempt to keep track when you modify the file. To refresh |
2956 track when you modify the file. To refresh when it gets out of synch, | 2934 when it gets out of synch, you simply need click on the @samp{Rescan |
2957 you simply need click on the @samp{Rescan Buffer} option in the | 2935 Buffer} option in the function-menu. |
2958 function-menu. | |
2959 | 2936 |
2960 @lisp | 2937 @lisp |
2961 (setq-default fume-auto-rescan-buffer-p nil) | 2938 (setq-default fume-auto-rescan-buffer-p nil) |
2962 @end lisp | 2939 @end lisp |
2963 @end quotation | 2940 @end quotation |
2972 (lambda () | 2949 (lambda () |
2973 (set-face-background 'modeline "red" (current-buffer)))) | 2950 (set-face-background 'modeline "red" (current-buffer)))) |
2974 @end lisp | 2951 @end lisp |
2975 | 2952 |
2976 Then, when editing a Lisp file (i.e. when in Lisp mode), the modeline | 2953 Then, when editing a Lisp file (i.e. when in Lisp mode), the modeline |
2977 colors change from the default set in your @file{.emacs}. The change | 2954 colors change from the default set in your @file{init.el}/@file{.emacs}. |
2978 will only be made in the buffer you just entered (which contains the | 2955 The change will only be made in the buffer you just entered (which |
2979 Lisp file you are editing) and will not affect the modeline colors | 2956 contains the Lisp file you are editing) and will not affect the modeline |
2980 anywhere else. | 2957 colors anywhere else. |
2981 | 2958 |
2982 Notes: | 2959 Notes: |
2983 | 2960 |
2984 @itemize @bullet | 2961 @itemize @bullet |
2985 | 2962 |
2986 @item | 2963 @item The hook is the mode name plus @code{-hook}. eg. c-mode-hook, |
2987 The hook is the mode name plus @code{-hook}. eg. c-mode-hook, | 2964 c++-mode-hook, emacs-lisp-mode-hook (used for your |
2988 c++-mode-hook, emacs-lisp-mode-hook (used for your @file{.emacs} or a | 2965 @file{init.el}/@file{.emacs} or a @file{xx.el} file), |
2989 @file{xx.el} file), lisp-interaction-mode-hook (the @samp{*scratch*} | 2966 lisp-interaction-mode-hook (the @samp{*scratch*} buffer), |
2990 buffer), text-mode-hook, etc. | 2967 text-mode-hook, etc. |
2991 | 2968 |
2992 @item | 2969 @item |
2993 Be sure to use @code{add-hook}, not @code{(setq c-mode-hook xxxx)}, | 2970 Be sure to use @code{add-hook}, not @code{(setq c-mode-hook xxxx)}, |
2994 otherwise you will erase anything that anybody has already put on the | 2971 otherwise you will erase anything that anybody has already put on the |
2995 hook. | 2972 hook. |
2999 eg. @code{(set-face-font 'modeline "*bold-r-normal*140-100-100*" | 2976 eg. @code{(set-face-font 'modeline "*bold-r-normal*140-100-100*" |
3000 (current-buffer))} if you wish the modeline font to vary based on the | 2977 (current-buffer))} if you wish the modeline font to vary based on the |
3001 current mode. | 2978 current mode. |
3002 @end itemize | 2979 @end itemize |
3003 | 2980 |
3004 This works in 19.15 as well, but there are additional modeline faces, | 2981 There are additional modeline faces, @code{modeline-buffer-id}, |
3005 @code{modeline-buffer-id}, @code{modeline-mousable}, and | 2982 @code{modeline-mousable}, and @code{modeline-mousable-minor-mode}, which |
3006 @code{modeline-mousable-minor-mode}, which you may want to customize. | 2983 you may want to customize. |
3007 | 2984 |
3008 @node Q3.4.1, Q3.4.2, Q3.3.5, Customization | 2985 @node Q3.4.1, Q3.4.2, Q3.3.5, Customization |
3009 @unnumberedsec 3.4: Multiple Device Support | 2986 @unnumberedsec 3.4: Multiple Device Support |
3010 @unnumberedsubsec Q3.4.1: How do I open a frame on another screen of my multi-headed display? | 2987 @unnumberedsubsec Q3.4.1: How do I open a frame on another screen of my multi-headed display? |
3011 | 2988 |
3012 The support for this was revamped for 19.14. Use the command | 2989 Use the command @kbd{M-x make-frame-on-display}. This command is also |
3013 @kbd{M-x make-frame-on-display}. This command is also on the File menu | 2990 on the File menu in the menubar. |
3014 in the menubar. | 2991 |
3015 | 2992 The command @code{make-frame-on-tty} also exists, which will establish a |
3016 XEmacs 19.14 and later also have the command @code{make-frame-on-tty} | 2993 connection to any tty-like device. Opening the TTY devices should be |
3017 which will establish a connection to any tty-like device. Opening the | 2994 left to @code{gnuclient}, though. |
3018 TTY devices should be left to @code{gnuclient}, though. | |
3019 | 2995 |
3020 @node Q3.4.2, Q3.5.1, Q3.4.1, Customization | 2996 @node Q3.4.2, Q3.5.1, Q3.4.1, Customization |
3021 @unnumberedsubsec Q3.4.2: Can I really connect to a running XEmacs after calling up over a modem? How? | 2997 @unnumberedsubsec Q3.4.2: Can I really connect to a running XEmacs after calling up over a modem? How? |
3022 | 2998 |
3023 If you're not running at least XEmacs 19.14, you can't. Otherwise check | 2999 Yes. Use @code{gnuclient -nw}. (Prior to 20.3, use the @code{gnuattach} |
3024 out the @code{gnuattach} program supplied with XEmacs. Starting with | 3000 program supplied with XEmacs instead.) |
3025 XEmacs 20.3, @code{gnuattach} and @code{gnudoit} functionality is | |
3026 provided by @code{gnuclient}. | |
3027 | 3001 |
3028 Also @xref{Q5.0.12}. | 3002 Also @xref{Q5.0.12}. |
3029 | 3003 |
3030 @node Q3.5.1, Q3.5.2, Q3.4.2, Customization | 3004 @node Q3.5.1, Q3.5.2, Q3.4.2, Customization |
3031 @unnumberedsec 3.5: The Keyboard | 3005 @unnumberedsec 3.5: The Keyboard |
3069 question 3.5.3 (@pxref{Q3.5.3}). | 3043 question 3.5.3 (@pxref{Q3.5.3}). |
3070 | 3044 |
3071 @node Q3.5.2, Q3.5.3, Q3.5.1, Customization | 3045 @node Q3.5.2, Q3.5.3, Q3.5.1, Customization |
3072 @unnumberedsubsec Q3.5.2: How can I stop down-arrow from adding empty lines to the bottom of my buffers? | 3046 @unnumberedsubsec Q3.5.2: How can I stop down-arrow from adding empty lines to the bottom of my buffers? |
3073 | 3047 |
3074 Add the following line to your @file{.emacs} file: | 3048 Add the following line to your @file{init.el}/@file{.emacs} file: |
3075 | 3049 |
3076 @lisp | 3050 @lisp |
3077 (setq next-line-add-newlines nil) | 3051 (setq next-line-add-newlines nil) |
3078 @end lisp | 3052 @end lisp |
3079 | 3053 |
3106 @unnumberedsubsec Q3.5.4: Globally binding @kbd{Delete}? | 3080 @unnumberedsubsec Q3.5.4: Globally binding @kbd{Delete}? |
3107 | 3081 |
3108 I cannot manage to globally bind my @kbd{Delete} key to something other | 3082 I cannot manage to globally bind my @kbd{Delete} key to something other |
3109 than the default. How does one do this? | 3083 than the default. How does one do this? |
3110 | 3084 |
3085 Answer: The problem is that many modes explicitly bind @kbd{Delete}. To | |
3086 get around this, try the following: | |
3087 | |
3111 @lisp | 3088 @lisp |
3112 (defun foo () | 3089 (defun foo () |
3113 (interactive) | 3090 (interactive) |
3114 (message "You hit DELETE")) | 3091 (message "You hit DELETE")) |
3115 | 3092 |
3116 (global-set-key 'delete 'foo) | 3093 (define-key key-translation-map 'delete 'redirected-delete) |
3117 @end lisp | 3094 (global-set-key 'redirected-delete 'foo) |
3118 | 3095 @end lisp |
3119 However, some modes explicitly bind @kbd{Delete}, so you would need to | |
3120 add a hook that does @code{local-set-key} for them. If what you want to | |
3121 do is make the Backspace and Delete keys work more PC/Motif-like, then | |
3122 take a look at the @file{delbs.el} package. | |
3123 | |
3124 New in XEmacs 19.14 is a variable called @code{key-translation-map} | |
3125 which makes it easier to bind @kbd{Delete}. @file{delbs.el} is a | |
3126 good example of how to do this correctly. | |
3127 | 3096 |
3128 Also @xref{Q3.5.10}. | 3097 Also @xref{Q3.5.10}. |
3129 | 3098 |
3130 @node Q3.5.5, Q3.5.6, Q3.5.4, Customization | 3099 @node Q3.5.5, Q3.5.6, Q3.5.4, Customization |
3131 @unnumberedsubsec Q3.5.5: Scrolling one line at a time. | 3100 @unnumberedsubsec Q3.5.5: Scrolling one line at a time. |
3157 (setq scroll-step 1) | 3126 (setq scroll-step 1) |
3158 @end lisp | 3127 @end lisp |
3159 | 3128 |
3160 Starting with XEmacs-20.3 you can also change this with Customize. | 3129 Starting with XEmacs-20.3 you can also change this with Customize. |
3161 Select from the @code{Options} menu | 3130 Select from the @code{Options} menu |
3162 @code{Customize->Emacs->Environment->Windows->Scroll Step...} or type | 3131 @code{Advanced (Customize)->Emacs->Environment->Windows->Scroll Step...} or type |
3163 @kbd{M-x customize @key{RET} windows @key{RET}}. | 3132 @kbd{M-x customize @key{RET} windows @key{RET}}. |
3164 | 3133 |
3165 @node Q3.5.6, Q3.5.7, Q3.5.5, Customization | 3134 @node Q3.5.6, Q3.5.7, Q3.5.5, Customization |
3166 @unnumberedsubsec Q3.5.6: How to map @kbd{Help} key alone on Sun type4 keyboard? | 3135 @unnumberedsubsec Q3.5.6: How to map @kbd{Help} key alone on Sun type4 keyboard? |
3167 | 3136 |
3169 | 3138 |
3170 @lisp | 3139 @lisp |
3171 (global-set-key [help] 'help-command);; Help | 3140 (global-set-key [help] 'help-command);; Help |
3172 @end lisp | 3141 @end lisp |
3173 | 3142 |
3174 The following works in XEmacs 19.15 with the addition of shift: | 3143 The following works in XEmacs with the addition of shift: |
3175 | 3144 |
3176 @lisp | 3145 @lisp |
3177 (global-set-key [(shift help)] 'help-command);; Help | 3146 (global-set-key [(shift help)] 'help-command);; Help |
3178 @end lisp | 3147 @end lisp |
3179 | 3148 |
3196 @unnumberedsubsec Q3.5.7: How can you type in special characters in XEmacs? | 3165 @unnumberedsubsec Q3.5.7: How can you type in special characters in XEmacs? |
3197 @c Changed | 3166 @c Changed |
3198 One way is to use the package @code{x-compose}. Then you can use | 3167 One way is to use the package @code{x-compose}. Then you can use |
3199 sequences like @kbd{Compose " a} to get ä, etc. | 3168 sequences like @kbd{Compose " a} to get ä, etc. |
3200 | 3169 |
3201 Another way is to use the @code{iso-insert} package, provided in XEmacs | 3170 Another way is to use the @code{iso-insert} package. Then you can use |
3202 19.15 and later. Then you can use sequences like @kbd{C-x 8 " a} to get | 3171 sequences like @kbd{C-x 8 " a} to get ä, etc. |
3203 ä, etc. | |
3204 | 3172 |
3205 @email{glynn@@sensei.co.uk, Glynn Clements} writes: | 3173 @email{glynn@@sensei.co.uk, Glynn Clements} writes: |
3206 | 3174 |
3207 @quotation | 3175 @quotation |
3208 It depends upon your X server. | 3176 It depends upon your X server. |
3241 | 3209 |
3242 Running @samp{xmodmap -pk} will list all of the defined keysyms. | 3210 Running @samp{xmodmap -pk} will list all of the defined keysyms. |
3243 @end quotation | 3211 @end quotation |
3244 | 3212 |
3245 @node Q3.5.8, Q3.5.9, Q3.5.7, Customization | 3213 @node Q3.5.8, Q3.5.9, Q3.5.7, Customization |
3246 @unnumberedsubsec Q3.5.8: Why does @code{(global-set-key [delete-forward] 'delete-char)} complain? | 3214 @unnumberedsubsec Q3.5.8: [This question intentionally left blank] |
3247 | 3215 |
3248 Why does @code{(define-key global-map [ delete-forward ] 'delete-char)} | 3216 Obsolete question, left blank to avoid renumbering. |
3249 complain of not being able to bind an unknown key? | |
3250 | |
3251 Try this instead: | |
3252 | |
3253 @lisp | |
3254 (define-key global-map [delete_forward] 'delete-char) | |
3255 @end lisp | |
3256 | |
3257 and it will work. | |
3258 | |
3259 What you are seeing above is a bug due to code that is trying to check | |
3260 for GNU Emacs syntax like: | |
3261 | |
3262 (define-key global-map [C-M-a] 'delete-char) | |
3263 | |
3264 which otherwise would cause no errors but would not result in the | |
3265 expected behavior. | |
3266 | |
3267 This bug has been fixed in 19.14. | |
3268 | 3217 |
3269 @node Q3.5.9, Q3.5.10, Q3.5.8, Customization | 3218 @node Q3.5.9, Q3.5.10, Q3.5.8, Customization |
3270 @unnumberedsubsec Q3.5.9: How do I make the Delete key delete forward? | 3219 @unnumberedsubsec Q3.5.9: How do I make the Delete key delete forward? |
3271 | 3220 |
3272 With XEmacs-20.2 use the @code{delbs} package: | 3221 With XEmacs-20.2 use the @code{delbs} package: |
3280 ``normal'' behavior. Note that @code{delbackspace} package is obsolete. | 3229 ``normal'' behavior. Note that @code{delbackspace} package is obsolete. |
3281 | 3230 |
3282 Starting with XEmacs-20.3 better solution is to set variable | 3231 Starting with XEmacs-20.3 better solution is to set variable |
3283 @code{delete-key-deletes-forward} to t. You can also change this with | 3232 @code{delete-key-deletes-forward} to t. You can also change this with |
3284 Customize. Select from the @code{Options} menu | 3233 Customize. Select from the @code{Options} menu |
3285 @code{Customize->Emacs->Editing->Basics->Delete Key Deletes Forward} or | 3234 @code{Advanced (Customize)->Emacs->Editing->Basics->Delete Key Deletes Forward} or |
3286 type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. | 3235 type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. |
3287 | 3236 |
3288 Also @xref{Q3.5.4}. | 3237 Also @xref{Q3.5.4}. |
3289 | 3238 |
3290 @node Q3.5.10, Q3.5.11, Q3.5.9, Customization | 3239 @node Q3.5.10, Q3.5.11, Q3.5.9, Customization |
3347 (setq bar-cursor 'anything-else) | 3296 (setq bar-cursor 'anything-else) |
3348 @end lisp | 3297 @end lisp |
3349 | 3298 |
3350 Starting with XEmacs-20.3 you can also change these with Customize. | 3299 Starting with XEmacs-20.3 you can also change these with Customize. |
3351 Select from the @code{Options} menu | 3300 Select from the @code{Options} menu |
3352 @code{Customize->Emacs->Environment->Display->Bar Cursor...} or type | 3301 @code{Advanced (Customize)->Emacs->Environment->Display->Bar Cursor...} or type |
3353 @kbd{M-x customize @key{RET} display @key{RET}}. | 3302 @kbd{M-x customize @key{RET} display @key{RET}}. |
3354 | 3303 |
3355 You can use a color to make it stand out better: | 3304 You can use a color to make it stand out better: |
3356 | 3305 |
3357 @example | 3306 @example |
3363 | 3312 |
3364 @lisp | 3313 @lisp |
3365 (setq bar-cursor nil) | 3314 (setq bar-cursor nil) |
3366 @end lisp | 3315 @end lisp |
3367 | 3316 |
3368 Starting with XEmacs-20.3 you can also change this with Customize. | 3317 Starting with XEmacs 20.3 you can also change this with Customize. |
3369 Select from the @code{Options} menu | 3318 Select from the @code{Options} menu |
3370 @code{Customize->Emacs->Environment->Display->Bar Cursor...} or type | 3319 @code{Advanced (Customize)->Emacs->Environment->Display->Bar Cursor...} or type |
3371 @kbd{M-x customize @key{RET} display @key{RET}}. | 3320 @kbd{M-x customize @key{RET} display @key{RET}}. |
3372 | 3321 |
3373 @node Q3.6.3, Q3.7.1, Q3.6.2, Customization | 3322 @node Q3.6.3, Q3.7.1, Q3.6.2, Customization |
3374 @unnumberedsubsec Q3.6.3: Can I make the cursor blink? | 3323 @unnumberedsubsec Q3.6.3: Can I make the cursor blink? |
3375 | 3324 |
3376 If you are running a version of XEmacs older than 19.14, no. Otherwise | 3325 Yes, like this: |
3377 you can do the following: | |
3378 | 3326 |
3379 @lisp | 3327 @lisp |
3380 (blink-cursor-mode) | 3328 (blink-cursor-mode) |
3381 @end lisp | 3329 @end lisp |
3382 | 3330 |
3454 do I disable this? | 3402 do I disable this? |
3455 | 3403 |
3456 Examine the function @code{mouse-yank}, by typing @kbd{C-h f mouse-yank | 3404 Examine the function @code{mouse-yank}, by typing @kbd{C-h f mouse-yank |
3457 @key{RET}}. | 3405 @key{RET}}. |
3458 | 3406 |
3459 To get XEmacs to paste at the text cursor, add this your @file{.emacs}: | 3407 To get XEmacs to paste at the text cursor, add this your @file{init.el}/@file{.emacs}: |
3460 | 3408 |
3461 @lisp | 3409 @lisp |
3462 (setq mouse-yank-at-point t) | 3410 (setq mouse-yank-at-point t) |
3463 @end lisp | 3411 @end lisp |
3464 | 3412 |
3465 Starting with XEmacs-20.2 you can also change this with Customize. | 3413 Starting with XEmacs-20.2 you can also change this with Customize. |
3466 Select from the @code{Options} menu | 3414 Select from the @code{Options} menu |
3467 @code{Customize->Emacs->Editing->Mouse->Yank At Point...} or type | 3415 @code{Advanced (Customize)->Emacs->Editing->Mouse->Yank At Point...} or type |
3468 @kbd{M-x customize @key{RET} mouse @key{RET}}. | 3416 @kbd{M-x customize @key{RET} mouse @key{RET}}. |
3469 | 3417 |
3470 @node Q3.7.7, Q3.7.8, Q3.7.6, Customization | 3418 @node Q3.7.7, Q3.7.8, Q3.7.6, Customization |
3471 @unnumberedsubsec Q3.7.7: How do I select a rectangular region? | 3419 @unnumberedsubsec Q3.7.7: How do I select a rectangular region? |
3472 | 3420 |
3485 (setq mouse-track-rectangle-p t) | 3433 (setq mouse-track-rectangle-p t) |
3486 @end lisp | 3434 @end lisp |
3487 | 3435 |
3488 Starting with XEmacs-20.2 you can also change this with Customize. | 3436 Starting with XEmacs-20.2 you can also change this with Customize. |
3489 Select from the @code{Options} menu | 3437 Select from the @code{Options} menu |
3490 @code{Customize->Emacs->Editing->Mouse->Track Rectangle...} or type | 3438 @code{Advanced (Customize)->Emacs->Editing->Mouse->Track Rectangle...} or type |
3491 @kbd{M-x customize @key{RET} mouse @key{RET}}. | 3439 @kbd{M-x customize @key{RET} mouse @key{RET}}. |
3492 | 3440 |
3493 | 3441 |
3494 @example | 3442 @example |
3495 mouse-track-do-rectangle: (event) | 3443 mouse-track-do-rectangle: (event) |
3507 | 3455 |
3508 @node Q3.8.1, Q3.8.2, Q3.7.8, Customization | 3456 @node Q3.8.1, Q3.8.2, Q3.7.8, Customization |
3509 @unnumberedsec 3.8: The Menubar and Toolbar | 3457 @unnumberedsec 3.8: The Menubar and Toolbar |
3510 @unnumberedsubsec Q3.8.1: How do I get rid of the menu (or menubar)? | 3458 @unnumberedsubsec Q3.8.1: How do I get rid of the menu (or menubar)? |
3511 | 3459 |
3512 If you are running XEmacs 19.13 and earlier, add this command to your | 3460 @c If you are running XEmacs 19.13 or earlier, add this command to your |
3513 @file{.emacs}. | 3461 @c @file{init.el}/@file{.emacs}. |
3514 | 3462 @c |
3515 @lisp | 3463 @c @lisp |
3516 (set-menubar nil) | 3464 @c (set-menubar nil) |
3517 @end lisp | 3465 @c @end lisp |
3518 | 3466 @c |
3519 Starting with XEmacs 19.14 the preferred method is: | 3467 @c Starting with XEmacs 19.14 the preferred method is: |
3520 | 3468 @c |
3521 @lisp | 3469 @lisp |
3522 (set-specifier menubar-visible-p nil) | 3470 (set-specifier menubar-visible-p nil) |
3523 @end lisp | 3471 @end lisp |
3524 | 3472 |
3525 @node Q3.8.2, Q3.8.3, Q3.8.1, Customization | 3473 @node Q3.8.2, Q3.8.3, Q3.8.1, Customization |
3526 @unnumberedsubsec Q3.8.2: Can I customize the basic menubar? | 3474 @unnumberedsubsec Q3.8.2: Can I customize the basic menubar? |
3527 | 3475 |
3528 For an extensive menubar, add this line to your @file{.emacs}: | 3476 For an extensive menubar, add this line to your @file{init.el}/@file{.emacs}: |
3529 | 3477 |
3530 @lisp | 3478 @lisp |
3531 (load "big-menubar") | 3479 (load "big-menubar") |
3532 @end lisp | 3480 @end lisp |
3533 | 3481 |
3537 directory. | 3485 directory. |
3538 | 3486 |
3539 @node Q3.8.3, Q3.8.4, Q3.8.2, Customization | 3487 @node Q3.8.3, Q3.8.4, Q3.8.2, Customization |
3540 @unnumberedsubsec Q3.8.3: How do I control how many buffers are listed in the menu @code{Buffers List}? | 3488 @unnumberedsubsec Q3.8.3: How do I control how many buffers are listed in the menu @code{Buffers List}? |
3541 | 3489 |
3542 Add the following to your @file{.emacs} (suit to fit): | 3490 Add the following to your @file{init.el}/@file{.emacs} (suit to fit): |
3543 | 3491 |
3544 @lisp | 3492 @lisp |
3545 (setq buffers-menu-max-size 20) | 3493 (setq buffers-menu-max-size 20) |
3546 @end lisp | 3494 @end lisp |
3547 | 3495 |
3548 For no limit, use an argument of @samp{nil}. | 3496 For no limit, use an argument of @samp{nil}. |
3549 | 3497 |
3550 Starting with XEmacs-20.3 you can also change this with Customize. | 3498 Starting with XEmacs-20.3 you can also change this with Customize. |
3551 Select from the @code{Options} menu | 3499 Select from the @code{Options} menu |
3552 @code{Customize->Emacs->Environment->Menu->Buffers Menu->Max Size...} or | 3500 @code{Advanced (Customize)->Emacs->Environment->Menu->Buffers Menu->Max Size...} or |
3553 type @kbd{M-x customize @key{RET} buffers-menu @key{RET}}. | 3501 type @kbd{M-x customize @key{RET} buffers-menu @key{RET}}. |
3554 | 3502 |
3555 @node Q3.8.4, Q3.8.5, Q3.8.3, Customization | 3503 @node Q3.8.4, Q3.8.5, Q3.8.3, Customization |
3556 @unnumberedsubsec Q3.8.4: Resources like @code{Emacs*menubar*font} are not working? | 3504 @unnumberedsubsec Q3.8.4: Resources like @code{Emacs*menubar*font} are not working? |
3557 | 3505 |
3628 turn the scrollbars off only in a single buffer: | 3576 turn the scrollbars off only in a single buffer: |
3629 | 3577 |
3630 @lisp | 3578 @lisp |
3631 (set-specifier scrollbar-width 0 (current-buffer)) | 3579 (set-specifier scrollbar-width 0 (current-buffer)) |
3632 @end lisp | 3580 @end lisp |
3633 | 3581 @c |
3634 In XEmacs versions prior to 19.14, you had to use the hairier construct: | 3582 @c In XEmacs versions prior to 19.14, you had to use the hairier construct: |
3635 | 3583 @c |
3636 @lisp | 3584 @c @lisp |
3637 (set-specifier scrollbar-width (cons (selected-frame) 0)) | 3585 @c (set-specifier scrollbar-width (cons (selected-frame) 0)) |
3638 @end lisp | 3586 @c @end lisp |
3639 | 3587 |
3640 @node Q3.9.2, Q3.9.3, Q3.9.1, Customization | 3588 @node Q3.9.2, Q3.9.3, Q3.9.1, Customization |
3641 @unnumberedsubsec Q3.9.2: How can one use resources to change scrollbar colors? | 3589 @unnumberedsubsec Q3.9.2: How can one use resources to change scrollbar colors? |
3642 | 3590 |
3643 Here's a recap of how to use resources to change your scrollbar colors: | 3591 Here's a recap of how to use resources to change your scrollbar colors: |
3669 hand corner. | 3617 hand corner. |
3670 | 3618 |
3671 This cannot be changed. | 3619 This cannot be changed. |
3672 | 3620 |
3673 @node Q3.9.4, Q3.10.1, Q3.9.3, Customization | 3621 @node Q3.9.4, Q3.10.1, Q3.9.3, Customization |
3674 @unnumberedsubsec Q3.9.4: How can I get automatic horizontal scrolling? | 3622 @unnumberedsubsec Q3.9.4: How can I turn off automatic horizontal scrolling in specific modes? |
3675 | 3623 |
3676 By the same token, how can I turn it off in specific modes? | 3624 Do @code{(setq truncate-lines t)} in the mode-hooks for any modes |
3677 | |
3678 To do this, add to your @file{.emacs} file: | |
3679 | |
3680 @lisp | |
3681 (require 'auto-show) | |
3682 @end lisp | |
3683 | |
3684 Then do @code{(setq truncate-lines t)} in the mode-hooks for any modes | |
3685 in which you want lines truncated. | 3625 in which you want lines truncated. |
3686 | 3626 |
3687 More precisely: If @code{truncate-lines} is nil, horizontal scrollbars | 3627 More precisely: If @code{truncate-lines} is nil, horizontal scrollbars |
3688 will never appear. Otherwise, they will appear only if the value of | 3628 will never appear. Otherwise, they will appear only if the value of |
3689 @code{scrollbar-height} for that buffer/window/etc. is non-zero. If you | 3629 @code{scrollbar-height} for that buffer/window/etc. is non-zero. If you |
3694 @end lisp | 3634 @end lisp |
3695 | 3635 |
3696 then horizontal scrollbars will not appear in truncated buffers unless | 3636 then horizontal scrollbars will not appear in truncated buffers unless |
3697 the package specifically asked for them. | 3637 the package specifically asked for them. |
3698 | 3638 |
3699 Automatic horizontal scrolling is now standard, starting with 19.14. | |
3700 | |
3701 @node Q3.10.1, Q3.10.2, Q3.9.4, Customization | 3639 @node Q3.10.1, Q3.10.2, Q3.9.4, Customization |
3702 @unnumberedsec 3.10: Text Selections | 3640 @unnumberedsec 3.10: Text Selections |
3703 @unnumberedsubsec Q3.10.1: How can I turn off or change highlighted selections? | 3641 @unnumberedsubsec Q3.10.1: How can I turn off or change highlighted selections? |
3704 | 3642 |
3705 The @code{zmacs} mode allows for what some might call gratuitous | 3643 The @code{zmacs} mode allows for what some might call gratuitous |
3706 highlighting for selected regions (either by setting mark or by using | 3644 highlighting for selected regions (either by setting mark or by using |
3707 the mouse). This is the default behavior. To turn off, add the | 3645 the mouse). This is the default behavior. To turn off, add the |
3708 following line to your @file{.emacs} file: | 3646 following line to your @file{init.el}/@file{.emacs} file: |
3709 | 3647 |
3710 @lisp | 3648 @lisp |
3711 (setq zmacs-regions nil) | 3649 (setq zmacs-regions nil) |
3712 @end lisp | 3650 @end lisp |
3713 | 3651 |
3714 Starting with XEmacs-20.2 you can also change this with Customize. Select | 3652 Starting with XEmacs-20.2 you can also change this with Customize. Select |
3715 from the @code{Options} menu @code{Customize->Emacs->Editing->Basics->Zmacs | 3653 from the @code{Options} menu @code{Advanced (Customize)->Emacs->Editing->Basics->Zmacs |
3716 Regions} or type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. | 3654 Regions} or type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. |
3717 | 3655 |
3718 To change the face for selection, look at @code{Options->Customize} on | 3656 To change the face for selection, look at @code{Options->Customize} on |
3719 the menubar. | 3657 the menubar. |
3720 | 3658 |
3727 You want to use something called @dfn{pending delete}. Pending delete | 3665 You want to use something called @dfn{pending delete}. Pending delete |
3728 is what happens when you select a region (with the mouse or keyboard) | 3666 is what happens when you select a region (with the mouse or keyboard) |
3729 and you press a key to replace the selected region by the key you typed. | 3667 and you press a key to replace the selected region by the key you typed. |
3730 Usually backspace kills the selected region. | 3668 Usually backspace kills the selected region. |
3731 | 3669 |
3732 To get this behavior, add the following lines to your @file{.emacs}: | 3670 To get this behavior, add the following lines to your @file{init.el}/@file{.emacs}: |
3733 | 3671 |
3734 @lisp | 3672 @lisp |
3735 (cond | 3673 (cond |
3736 ((fboundp 'turn-on-pending-delete) | 3674 ((fboundp 'turn-on-pending-delete) |
3737 (turn-on-pending-delete)) | 3675 (turn-on-pending-delete)) |
3747 @unnumberedsubsec Q3.10.3: Can I turn off the highlight during isearch? | 3685 @unnumberedsubsec Q3.10.3: Can I turn off the highlight during isearch? |
3748 | 3686 |
3749 I do not like my text highlighted while I am doing isearch as I am not | 3687 I do not like my text highlighted while I am doing isearch as I am not |
3750 able to see what's underneath. How do I turn it off? | 3688 able to see what's underneath. How do I turn it off? |
3751 | 3689 |
3752 Put the following in your @file{.emacs}: | 3690 Put the following in your @file{init.el}/@file{.emacs}: |
3753 | 3691 |
3754 @lisp | 3692 @lisp |
3755 (setq isearch-highlight nil) | 3693 (setq isearch-highlight nil) |
3756 @end lisp | 3694 @end lisp |
3757 | 3695 |
4082 examples of usage, the plethora of user options that @emph{fully} | 4020 examples of usage, the plethora of user options that @emph{fully} |
4083 control VM's behavior. | 4021 control VM's behavior. |
4084 | 4022 |
4085 Enter vm-vars, @code{forward-search} for toolbar, find the variables | 4023 Enter vm-vars, @code{forward-search} for toolbar, find the variables |
4086 that control the toolbar placement, appearance, existence, copy to your | 4024 that control the toolbar placement, appearance, existence, copy to your |
4087 @file{.emacs} or @file{.vm} and modify according to the detailed | 4025 @file{init.el}/@file{.emacs} or @file{.vm} and modify according to the |
4088 instructions. | 4026 detailed instructions. |
4089 | 4027 |
4090 The above also applies to all the various features of VM: search for | 4028 The above also applies to all the various features of VM: search for |
4091 some keywords, maybe the first you conjure isn't appropriate, find the | 4029 some keywords, maybe the first you conjure isn't appropriate, find the |
4092 appropriate variables, copy and experiment. | 4030 appropriate variables, copy and experiment. |
4093 @end quotation | 4031 @end quotation |
4682 @menu | 4620 @menu |
4683 Major & Minor Modes: | 4621 Major & Minor Modes: |
4684 * Q5.0.1:: How can I do source code highlighting using font-lock? | 4622 * Q5.0.1:: How can I do source code highlighting using font-lock? |
4685 * Q5.0.2:: I do not like cc-mode. How do I use the old c-mode? | 4623 * Q5.0.2:: I do not like cc-mode. How do I use the old c-mode? |
4686 * Q5.0.3:: How do I get @samp{More} Syntax Highlighting on by default? | 4624 * Q5.0.3:: How do I get @samp{More} Syntax Highlighting on by default? |
4687 * Q5.0.4:: How can I enable auto-indent? | 4625 * Q5.0.4:: How can I enable auto-indent and/or Filladapt? |
4688 * Q5.0.5:: How can I get XEmacs to come up in text/auto-fill mode by default? | 4626 * Q5.0.5:: How can I get XEmacs to come up in text/auto-fill mode by default? |
4689 * Q5.0.6:: How do I start up a second shell buffer? | 4627 * Q5.0.6:: How do I start up a second shell buffer? |
4690 * Q5.0.7:: Telnet from shell filters too much. | 4628 * Q5.0.7:: Telnet from shell filters too much. |
4691 * Q5.0.8:: Why does edt emulation not work? | 4629 * Q5.0.8:: Why does edt emulation not work? |
4692 * Q5.0.9:: How can I emulate VI and use it as my default mode? | 4630 * Q5.0.9:: How can I emulate VI and use it as my default mode? |
4693 * Q5.0.10:: [This question intentionally left blank] | 4631 * Q5.0.10:: [This question intentionally left blank] |
4694 * Q5.0.11:: How do I turn on filladapt for all buffers? | 4632 * Q5.0.11:: [This question intentionally left blank] |
4695 * Q5.0.12:: How do I disable gnuserv from opening a new frame? | 4633 * Q5.0.12:: How do I disable gnuserv from opening a new frame? |
4696 * Q5.0.13:: How do I start gnuserv so that each subsequent XEmacs is a client? | 4634 * Q5.0.13:: How do I start gnuserv so that each subsequent XEmacs is a client? |
4697 * Q5.0.14:: Strange things are happening in Shell Mode. | 4635 * Q5.0.14:: Strange things are happening in Shell Mode. |
4698 * Q5.0.15:: Where do I get the latest CC Mode? | 4636 * Q5.0.15:: Where do I get the latest CC Mode? |
4699 * Q5.0.16:: I find auto-show-mode disconcerting. How do I turn it off? | 4637 * Q5.0.16:: I find auto-show-mode disconcerting. How do I turn it off? |
4721 * Q5.2.3:: What's NAS, how do I get it? | 4659 * Q5.2.3:: What's NAS, how do I get it? |
4722 * Q5.2.4:: Sunsite sounds don't play. | 4660 * Q5.2.4:: Sunsite sounds don't play. |
4723 | 4661 |
4724 Miscellaneous: | 4662 Miscellaneous: |
4725 * Q5.3.1:: How do you make XEmacs indent CL if-clauses correctly? | 4663 * Q5.3.1:: How do you make XEmacs indent CL if-clauses correctly? |
4726 * Q5.3.2:: Fontifying hangs when editing a postscript file. | 4664 * Q5.3.2:: [This question intentionally left blank] |
4727 * Q5.3.3:: How can I print WYSIWYG a font-locked buffer? | 4665 * Q5.3.3:: How can I print WYSIWYG a font-locked buffer? |
4728 * Q5.3.4:: Getting @kbd{M-x lpr} to work with postscript printer. | 4666 * Q5.3.4:: Getting @kbd{M-x lpr} to work with postscript printer. |
4729 * Q5.3.5:: How do I specify the paths that XEmacs uses for finding files? | 4667 * Q5.3.5:: How do I specify the paths that XEmacs uses for finding files? |
4730 * Q5.3.6:: [This question intentionally left blank] | 4668 * Q5.3.6:: [This question intentionally left blank] |
4731 * Q5.3.7:: Can I have the end of the buffer delimited in some way? | 4669 * Q5.3.7:: Can I have the end of the buffer delimited in some way? |
4739 @node Q5.0.1, Q5.0.2, Miscellaneous, Miscellaneous | 4677 @node Q5.0.1, Q5.0.2, Miscellaneous, Miscellaneous |
4740 @unnumberedsec 5.0: Major & Minor Modes | 4678 @unnumberedsec 5.0: Major & Minor Modes |
4741 @unnumberedsubsec Q5.0.1: How can I do source code highlighting using font-lock? | 4679 @unnumberedsubsec Q5.0.1: How can I do source code highlighting using font-lock? |
4742 | 4680 |
4743 For most modes, font-lock is already set up and just needs to be turned | 4681 For most modes, font-lock is already set up and just needs to be turned |
4744 on. This can be done by @kbd{M-x font-lock-mode}, or by having XEmacs | 4682 on. This can be done by adding the line: |
4745 automatically start it by adding lines like: | 4683 |
4746 | 4684 @lisp |
4747 @lisp | 4685 (require 'font-lock) |
4748 (add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock) | 4686 @end lisp |
4749 (add-hook 'dired-mode-hook 'turn-on-font-lock) | 4687 |
4750 @end lisp | 4688 to your @file{init.el}/@file{.emacs}. (You can turn it on for the |
4751 | 4689 current buffer and session only by @kbd{M-x font-lock-mode}.) See the |
4752 to your @file{.emacs}. See the file @file{etc/sample.emacs} for more | 4690 file @file{etc/sample.init.el} (@file{etc/sample.emacs} in XEmacs |
4753 examples. | 4691 versions prior to 21.4) for more information. |
4692 | |
4693 @c the old way: | |
4694 @c (add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock) | |
4695 @c (add-hook 'dired-mode-hook 'turn-on-font-lock) | |
4754 | 4696 |
4755 See also @code{Syntax Highlighting} from the @code{Options} menu. | 4697 See also @code{Syntax Highlighting} from the @code{Options} menu. |
4756 Remember to save options. | 4698 Remember to save options. |
4757 | 4699 |
4758 @node Q5.0.2, Q5.0.3, Q5.0.1, Miscellaneous | 4700 @node Q5.0.2, Q5.0.3, Q5.0.1, Miscellaneous |
4761 Well, first off, consider if you really want to do this. cc-mode is | 4703 Well, first off, consider if you really want to do this. cc-mode is |
4762 much more powerful than the old c-mode. If you're having trouble | 4704 much more powerful than the old c-mode. If you're having trouble |
4763 getting your old offsets to work, try using @code{c-set-offset} instead. | 4705 getting your old offsets to work, try using @code{c-set-offset} instead. |
4764 You might also consider using the package @code{cc-compat}. | 4706 You might also consider using the package @code{cc-compat}. |
4765 | 4707 |
4766 But, if you still insist, add the following lines to your @file{.emacs}: | 4708 But, if you still insist, add the following lines to your @file{init.el}/@file{.emacs}: |
4767 | 4709 |
4768 @lisp | 4710 @lisp |
4769 (fmakunbound 'c-mode) | 4711 (fmakunbound 'c-mode) |
4770 (makunbound 'c-mode-map) | 4712 (makunbound 'c-mode-map) |
4771 (fmakunbound 'c++-mode) | 4713 (fmakunbound 'c++-mode) |
4779 c++-mode. | 4721 c++-mode. |
4780 | 4722 |
4781 @node Q5.0.3, Q5.0.4, Q5.0.2, Miscellaneous | 4723 @node Q5.0.3, Q5.0.4, Q5.0.2, Miscellaneous |
4782 @unnumberedsubsec Q5.0.3: How do I get @samp{More} Syntax Highlighting on by default? | 4724 @unnumberedsubsec Q5.0.3: How do I get @samp{More} Syntax Highlighting on by default? |
4783 | 4725 |
4784 Use the following code in your @file{.emacs}: | 4726 Use the following code in your @file{init.el}/@file{.emacs}: |
4785 | 4727 |
4786 @lisp | 4728 @lisp |
4787 (setq-default font-lock-maximum-decoration t) | 4729 (setq-default font-lock-maximum-decoration t) |
4788 @end lisp | 4730 @end lisp |
4789 | 4731 |
4790 In versions of XEmacs prior to 19.14, you had to use a kludgy solution | 4732 @c In versions of XEmacs prior to 19.14, you had to use a kludgy solution |
4791 like this: | 4733 @c like this: |
4792 | 4734 @c |
4793 @lisp | 4735 @c @lisp |
4794 (setq c-font-lock-keywords c-font-lock-keywords-2 | 4736 @c (setq c-font-lock-keywords c-font-lock-keywords-2 |
4795 c++-font-lock-keywords c++-font-lock-keywords-2 | 4737 @c c++-font-lock-keywords c++-font-lock-keywords-2 |
4796 lisp-font-lock-keywords lisp-font-lock-keywords-2) | 4738 @c lisp-font-lock-keywords lisp-font-lock-keywords-2) |
4797 @end lisp | 4739 @c @end lisp |
4798 | 4740 @c |
4799 It will work for C, C++ and Lisp. | 4741 @c It will work for C, C++ and Lisp. |
4800 | 4742 @c |
4801 See also @code{Syntax Highlighting} from the @code{Options} menu. | 4743 See also @code{Syntax Highlighting} from the @code{Options} menu. |
4802 Remember to save options. | 4744 Remember to save options. |
4803 | 4745 |
4804 @node Q5.0.4, Q5.0.5, Q5.0.3, Miscellaneous | 4746 @node Q5.0.4, Q5.0.5, Q5.0.3, Miscellaneous |
4805 @unnumberedsubsec Q5.0.4: How can I enable auto-indent? | 4747 @unnumberedsubsec Q5.0.4: How can I enable auto-indent and/or Filladapt? |
4806 | 4748 |
4807 Put the following line in your @file{.emacs}: | 4749 Put the following line in your @file{init.el}/@file{.emacs}: |
4808 | 4750 |
4809 @lisp | 4751 @lisp |
4810 (setq indent-line-function 'indent-relative-maybe) | 4752 (setq indent-line-function 'indent-relative-maybe) |
4811 @end lisp | 4753 @end lisp |
4812 | 4754 |
4813 If you want to get fancy, try the @code{filladapt} package available | 4755 If you want to get fancy, try the @code{filladapt} package available |
4814 standard with XEmacs. Put this into your @file{.emacs}: | 4756 standard with XEmacs. Put this into your @file{init.el}/@file{.emacs}: |
4815 | 4757 |
4816 @lisp | 4758 @lisp |
4817 (require 'filladapt) | 4759 (require 'filladapt) |
4818 (add-hook 'text-mode-hook 'turn-on-filladapt-mode) | 4760 (setq-default filladapt-mode t) |
4819 ;;; and others ... | 4761 (add-hook 'c-mode-hook 'turn-off-filladapt-mode) |
4762 @end lisp | |
4763 | |
4764 This will enable Filladapt for all modes except C mode, where it doesn't | |
4765 work well. To turn Filladapt on only in particular major modes, remove | |
4766 the @code{(setq-default ...)} line and use | |
4767 @code{turn-on-filladapt-mode}, like this: | |
4768 | |
4769 @lisp | |
4770 (add-hook 'text-mode-hook 'turn-on-filladapt-mode) | |
4820 @end lisp | 4771 @end lisp |
4821 | 4772 |
4822 You can customize filling and adaptive filling with Customize. | 4773 You can customize filling and adaptive filling with Customize. |
4823 Select from the @code{Options} menu | 4774 Select from the @code{Options} menu |
4824 @code{Customize->Emacs->->Editing->Fill->Fill...} | 4775 @code{Advanced (Customize)->Emacs->Editing->Fill->Fill...} |
4825 or type @kbd{M-x customize @key{RET} fill @key{RET}}. | 4776 or type @kbd{M-x customize @key{RET} fill @key{RET}}. |
4826 | 4777 |
4827 Note that well-behaving text-lookalike modes will run | 4778 Note that well-behaving text-lookalike modes will run |
4828 @code{text-mode-hook} by default (e.g. that's what Message does). For | 4779 @code{text-mode-hook} by default (e.g. that's what Message does). For |
4829 the nasty ones, you'll have to provide the @code{add-hook}s yourself. | 4780 the nasty ones, you'll have to provide the @code{add-hook}s yourself. |
4831 Please note that the @code{fa-extras} package is no longer useful. | 4782 Please note that the @code{fa-extras} package is no longer useful. |
4832 | 4783 |
4833 @node Q5.0.5, Q5.0.6, Q5.0.4, Miscellaneous | 4784 @node Q5.0.5, Q5.0.6, Q5.0.4, Miscellaneous |
4834 @unnumberedsubsec Q5.0.5: How can I get XEmacs to come up in text/auto-fill mode by default? | 4785 @unnumberedsubsec Q5.0.5: How can I get XEmacs to come up in text/auto-fill mode by default? |
4835 | 4786 |
4836 Try the following lisp in your @file{.emacs}: | 4787 Try the following lisp in your @file{init.el}/@file{.emacs}: |
4837 | 4788 |
4838 @lisp | 4789 @lisp |
4839 (setq default-major-mode 'text-mode) | 4790 (setq default-major-mode 'text-mode) |
4840 (setq text-mode-hook 'turn-on-auto-fill) | 4791 (setq text-mode-hook 'turn-on-auto-fill) |
4841 @end lisp | 4792 @end lisp |
4909 @node Q5.0.8, Q5.0.9, Q5.0.7, Miscellaneous | 4860 @node Q5.0.8, Q5.0.9, Q5.0.7, Miscellaneous |
4910 @unnumberedsubsec Q5.0.8: Why does edt emulation not work? | 4861 @unnumberedsubsec Q5.0.8: Why does edt emulation not work? |
4911 | 4862 |
4912 We don't know, but you can use tpu-edt emulation instead, which works | 4863 We don't know, but you can use tpu-edt emulation instead, which works |
4913 fine and is a little fancier than the standard edt emulation. To do | 4864 fine and is a little fancier than the standard edt emulation. To do |
4914 this, add the following line to your @file{.emacs}: | 4865 this, add the following line to your @file{init.el}/@file{.emacs}: |
4915 | 4866 |
4916 @lisp | 4867 @lisp |
4917 (tpu-edt) | 4868 (tpu-edt) |
4918 @end lisp | 4869 @end lisp |
4919 | 4870 |
4926 | 4877 |
4927 @node Q5.0.9, Q5.0.10, Q5.0.8, Miscellaneous | 4878 @node Q5.0.9, Q5.0.10, Q5.0.8, Miscellaneous |
4928 @unnumberedsubsec Q5.0.9: How can I emulate VI and use it as my default mode? | 4879 @unnumberedsubsec Q5.0.9: How can I emulate VI and use it as my default mode? |
4929 | 4880 |
4930 Our recommended VI emulator is viper. To make viper-mode the default, | 4881 Our recommended VI emulator is viper. To make viper-mode the default, |
4931 add this to your @file{.emacs}: | 4882 add this to your @file{init.el}/@file{.emacs}: |
4932 | 4883 |
4933 @lisp | 4884 @lisp |
4934 (viper-mode) | 4885 (viper-mode) |
4935 @end lisp | 4886 @end lisp |
4936 | 4887 |
4937 @email{kifer@@CS.SunySB.EDU, Michael Kifer} writes: | 4888 @email{kifer@@CS.SunySB.EDU, Michael Kifer} writes: |
4938 | 4889 |
4939 @quotation | 4890 @quotation |
4940 This should be added as close to the top of @file{.emacs} as you can get | 4891 This should be added as close to the top of @file{init.el}/@file{.emacs} as you can get |
4941 it, otherwise some minor modes may not get viper-ized. | 4892 it, otherwise some minor modes may not get viper-ized. |
4942 @end quotation | 4893 @end quotation |
4943 | 4894 |
4944 @node Q5.0.10, Q5.0.11, Q5.0.9, Miscellaneous | 4895 @node Q5.0.10, Q5.0.11, Q5.0.9, Miscellaneous |
4945 @unnumberedsubsec Q5.0.10: [This question intentionally left blank] | 4896 @unnumberedsubsec Q5.0.10: [This question intentionally left blank] |
4946 | 4897 |
4947 Obsolete question, left blank to avoid renumbering | 4898 Obsolete question, left blank to avoid renumbering |
4948 | 4899 |
4949 @node Q5.0.11, Q5.0.12, Q5.0.10, Miscellaneous | 4900 @node Q5.0.11, Q5.0.12, Q5.0.10, Miscellaneous |
4950 @unnumberedsubsec Q5.0.11: How do I turn on filladapt for all buffers? | 4901 @unnumberedsubsec Q5.0.11: [This question intentionally left blank] |
4951 | 4902 |
4952 Filladapt is a minor mode and minor modes are traditionally off by | 4903 Obsolete question, left blank to avoid renumbering |
4953 default. The following added to your @file{.emacs} will turn it on for | |
4954 all buffers: | |
4955 | |
4956 @lisp | |
4957 (setq-default filladapt-mode t) | |
4958 @end lisp | |
4959 | |
4960 Use @code{turn-on-filladapt-mode} to turn Filladapt on in particular | |
4961 major modes, like this: | |
4962 | |
4963 @lisp | |
4964 (add-hook 'text-mode-hook 'turn-on-filladapt-mode) | |
4965 @end lisp | |
4966 | 4904 |
4967 @node Q5.0.12, Q5.0.13, Q5.0.11, Miscellaneous | 4905 @node Q5.0.12, Q5.0.13, Q5.0.11, Miscellaneous |
4968 @unnumberedsubsec Q5.0.12: How do I disable gnuserv from opening a new frame? | 4906 @unnumberedsubsec Q5.0.12: How do I disable gnuserv from opening a new frame? |
4969 | 4907 |
4970 If you set the @code{gnuserv-frame} variable to the frame that should be | 4908 If you set the @code{gnuserv-frame} variable to the frame that should be |
4973 | 4911 |
4974 @lisp | 4912 @lisp |
4975 (setq gnuserv-frame (selected-frame)) | 4913 (setq gnuserv-frame (selected-frame)) |
4976 @end lisp | 4914 @end lisp |
4977 | 4915 |
4978 early on in your @file{.emacs}, to ensure that the first frame created | 4916 early on in your @file{init.el}/@file{.emacs}, to ensure that the first frame created |
4979 is the one used for your gnuserv buffers. | 4917 is the one used for your gnuserv buffers. |
4980 | 4918 |
4981 Starting in 19.15, there is an option to set the gnuserv target to | 4919 There is an option to set the gnuserv target to the current frame. See |
4982 the current frame. See | 4920 @code{Options->Display->"Other Window" Location->Make Current Frame Gnuserv Target} |
4983 @code{Options->"Other Window" Location->Make current frame gnuserv target} | |
4984 | 4921 |
4985 Starting with XEmacs-20.3 you can also change this with Customize. | 4922 Starting with XEmacs-20.3 you can also change this with Customize. |
4986 Select from the @code{Options} menu | 4923 Select from the @code{Options} menu |
4987 @code{Customize->Emacs->Environment->Gnuserv->Gnuserv Frame...} or type | 4924 @code{Advanced (Customize)->Emacs->Environment->Gnuserv->Gnuserv Frame...} |
4988 @kbd{M-x customize @key{RET} gnuserv @key{RET}}. | 4925 or type @kbd{M-x customize @key{RET} gnuserv @key{RET}}. |
4989 | 4926 |
4990 | 4927 |
4991 @node Q5.0.13, Q5.0.14, Q5.0.12, Miscellaneous | 4928 @node Q5.0.13, Q5.0.14, Q5.0.12, Miscellaneous |
4992 @unnumberedsubsec Q5.0.13: How do I start gnuserv so that each subsequent XEmacs is a client? | 4929 @unnumberedsubsec Q5.0.13: How do I start gnuserv so that each subsequent XEmacs is a client? |
4993 | 4930 |
4994 Put the following in your @file{.emacs} file to start the server: | 4931 Put the following in your @file{init.el}/@file{.emacs} file to start the server: |
4995 | 4932 |
4996 @lisp | 4933 @lisp |
4997 (gnuserv-start) | 4934 (gnuserv-start) |
4998 @end lisp | 4935 @end lisp |
4999 | 4936 |
5044 @unnumberedsubsec Q5.0.16: I find auto-show-mode disconcerting. How do I turn it off? | 4981 @unnumberedsubsec Q5.0.16: I find auto-show-mode disconcerting. How do I turn it off? |
5045 | 4982 |
5046 @code{auto-show-mode} controls whether or not a horizontal scrollbar | 4983 @code{auto-show-mode} controls whether or not a horizontal scrollbar |
5047 magically appears when a line is too long to be displayed. This is | 4984 magically appears when a line is too long to be displayed. This is |
5048 enabled by default. To turn it off, put the following in your | 4985 enabled by default. To turn it off, put the following in your |
5049 @file{.emacs}: | 4986 @file{init.el}/@file{.emacs}: |
5050 | 4987 |
5051 @lisp | 4988 @lisp |
5052 (setq auto-show-mode nil) | 4989 (setq auto-show-mode nil) |
5053 (setq-default auto-show-mode nil) | 4990 (setq-default auto-show-mode nil) |
5054 @end lisp | 4991 @end lisp |
5055 | 4992 |
5056 @node Q5.0.17, Q5.0.18, Q5.0.16, Miscellaneous | 4993 @node Q5.0.17, Q5.0.18, Q5.0.16, Miscellaneous |
5057 @unnumberedsubsec Q5.0.17: How can I get two instances of info? | 4994 @unnumberedsubsec Q5.0.17: How can I get two instances of info? |
5058 | 4995 |
5059 You can't. The @code{info} package does not provide for multiple info buffers. | 4996 Before 21.4, you can't. The @code{info} package does not provide for |
4997 multiple info buffers. In 21.4, this should be fixed. #### how? | |
5060 | 4998 |
5061 @node Q5.0.18, Q5.0.19, Q5.0.17, Miscellaneous | 4999 @node Q5.0.18, Q5.0.19, Q5.0.17, Miscellaneous |
5062 @unnumberedsubsec Q5.0.18: [This question intentionally left blank] | 5000 @unnumberedsubsec Q5.0.18: [This question intentionally left blank] |
5063 | 5001 |
5064 @node Q5.0.19, Q5.0.20, Q5.0.18, Miscellaneous | 5002 @node Q5.0.19, Q5.0.20, Q5.0.18, Miscellaneous |
5430 Instead of @samp{FILE}, use the image file name | 5368 Instead of @samp{FILE}, use the image file name |
5431 (e.g. | 5369 (e.g. |
5432 @iftex | 5370 @iftex |
5433 @* | 5371 @* |
5434 @end iftex | 5372 @end iftex |
5435 @file{/usr/local/lib/xemacs-20.2/etc/recycle.xpm}). | 5373 @file{/usr/local/lib/xemacs-21.4/etc/recycle.xpm}). |
5436 | 5374 |
5437 You can turn this to a function (that optionally prompts you for a file | 5375 You can turn this to a function (that optionally prompts you for a file |
5438 name), and inserts the glyph at @code{(point)} instead of | 5376 name), and inserts the glyph at @code{(point)} instead of |
5439 @code{(point-min)}. | 5377 @code{(point-min)}. |
5440 | 5378 |
5472 @node Q5.1.11, Q5.2.1, Q5.1.10, Miscellaneous | 5410 @node Q5.1.11, Q5.2.1, Q5.1.10, Miscellaneous |
5473 @unnumberedsubsec Q5.1.11: My elisp program is horribly slow. Is there | 5411 @unnumberedsubsec Q5.1.11: My elisp program is horribly slow. Is there |
5474 an easy way to find out where it spends time? | 5412 an easy way to find out where it spends time? |
5475 @c New | 5413 @c New |
5476 | 5414 |
5477 z@email{hniksic@@xemacs.org, Hrvoje Niksic} writes: | 5415 @email{hniksic@@xemacs.org, Hrvoje Niksic} writes: |
5478 @quotation | 5416 @quotation |
5479 Under XEmacs 20.4 and later you can use @kbd{M-x profile-key-sequence}, press a key | 5417 Under XEmacs 20.4 and later you can use @kbd{M-x profile-key-sequence}, |
5480 (say @key{RET} in the Gnus Group buffer), and get the results using | 5418 press a key (say @key{RET} in the Gnus Group buffer), and get the |
5481 @kbd{M-x profile-results}. It should give you an idea of where the time | 5419 results using @kbd{M-x profile-results}. It should give you an idea of |
5482 is being spent. | 5420 where the time is being spent. |
5483 @end quotation | 5421 @end quotation |
5484 | 5422 |
5485 @node Q5.2.1, Q5.2.2, Q5.1.11, Miscellaneous | 5423 @node Q5.2.1, Q5.2.2, Q5.1.11, Miscellaneous |
5486 @unnumberedsubsec Q5.2.1: How do I turn off the sound? | 5424 @unnumberedsubsec Q5.2.1: How do I turn off the sound? |
5487 | 5425 |
5488 Add the following line to your @file{.emacs}: | 5426 Add the following line to your @file{init.el}/@file{.emacs}: |
5489 | 5427 |
5490 @lisp | 5428 @lisp |
5491 (setq bell-volume 0) | 5429 (setq bell-volume 0) |
5492 (setq sound-alist nil) | 5430 (setq sound-alist nil) |
5493 @end lisp | 5431 @end lisp |
5494 | 5432 |
5495 That will make your XEmacs totally silent---even the default ding sound | 5433 That will make your XEmacs totally silent---even the default ding sound |
5496 (TTY beep on TTY-s) will be gone. | 5434 (TTY beep on TTY-s) will be gone. |
5497 | 5435 |
5498 Starting with XEmacs-20.2 you can also change these with Customize. | 5436 Starting with XEmacs 20.2 you can also change these with Customize. |
5499 Select from the @code{Options} menu | 5437 Select from the @code{Options} menu |
5500 @code{Customize->Emacs->Environment->Sound->Sound...} or type | 5438 @code{Advanced (Customize)->Emacs->Environment->Sound->Sound...} or type |
5501 @kbd{M-x customize @key{RET} sound @key{RET}}. | 5439 @kbd{M-x customize @key{RET} sound @key{RET}}. |
5502 | 5440 |
5503 | 5441 |
5504 @node Q5.2.2, Q5.2.3, Q5.2.1, Miscellaneous | 5442 @node Q5.2.2, Q5.2.3, Q5.2.1, Miscellaneous |
5505 @unnumberedsubsec Q5.2.2: How do I get funky sounds instead of a boring beep? | 5443 @unnumberedsubsec Q5.2.2: How do I get funky sounds instead of a boring beep? |
5506 | 5444 |
5507 Make sure your XEmacs was compiled with sound support, and then put this | 5445 Make sure your XEmacs was compiled with sound support, and then put this |
5508 in your @file{.emacs}: | 5446 in your @file{init.el}/@file{.emacs}: |
5509 | 5447 |
5510 @lisp | 5448 @lisp |
5511 (load-default-sounds) | 5449 (load-default-sounds) |
5512 @end lisp | 5450 @end lisp |
5513 | 5451 |
5514 The sound support in XEmacs 19.14 was greatly improved over previous | 5452 @c The sound support in XEmacs 19.14 was greatly improved over previous |
5515 versions. | 5453 @c versions. |
5516 | 5454 @c |
5517 @node Q5.2.3, Q5.2.4, Q5.2.2, Miscellaneous | 5455 @node Q5.2.3, Q5.2.4, Q5.2.2, Miscellaneous |
5518 @unnumberedsubsec Q5.2.3: What's NAS, how do I get it? | 5456 @unnumberedsubsec Q5.2.3: What's NAS, how do I get it? |
5519 | 5457 |
5520 @xref{Q2.0.3}, for an explanation of the @dfn{Network Audio System}. | 5458 @xref{Q2.0.3}, for an explanation of the @dfn{Network Audio System}. |
5521 | 5459 |
5544 | 5482 |
5545 I'd like XEmacs to indent all the clauses of a Common Lisp @code{if} the | 5483 I'd like XEmacs to indent all the clauses of a Common Lisp @code{if} the |
5546 same amount instead of indenting the 3rd clause differently from the | 5484 same amount instead of indenting the 3rd clause differently from the |
5547 first two. | 5485 first two. |
5548 | 5486 |
5549 One way is to add, to @file{.emacs}: | 5487 One way is to add, to @file{init.el}/@file{.emacs}: |
5550 | 5488 |
5551 @lisp | 5489 @lisp |
5552 (put 'if 'lisp-indent-function nil) | 5490 (put 'if 'lisp-indent-function nil) |
5553 @end lisp | 5491 @end lisp |
5554 | 5492 |
5574 comp.emacs.xemacs on 12/9/94. This version includes more documentation | 5512 comp.emacs.xemacs on 12/9/94. This version includes more documentation |
5575 than previous versions. This may prove useful if you need to customize | 5513 than previous versions. This may prove useful if you need to customize |
5576 any indent-functions. | 5514 any indent-functions. |
5577 | 5515 |
5578 @node Q5.3.2, Q5.3.3, Q5.3.1, Miscellaneous | 5516 @node Q5.3.2, Q5.3.3, Q5.3.1, Miscellaneous |
5579 @unnumberedsubsec Q5.3.2: Fontifying hang when editing a postscript file. | 5517 @unnumberedsubsec Q5.3.2: [This question intentionally left blank] |
5580 | 5518 |
5581 When I try to edit a postscript file it gets stuck saying: | 5519 Obsolete question, left blank to avoid renumbering. |
5582 @samp{fontifying 'filename' (regexps....)} and it just sits there. If I | |
5583 press @kbd{C-c} in the window where XEmacs was started, it suddenly | |
5584 becomes alive again. | |
5585 | |
5586 This was caused by a bug in the Postscript font-lock regular | |
5587 expressions. It was fixed in 19.13. For earlier versions of XEmacs, | |
5588 have a look at your @file{.emacs} file. You will probably have a line | |
5589 like: | |
5590 | |
5591 @lisp | |
5592 (add-hook 'postscript-mode-hook 'turn-on-font-lock) | |
5593 @end lisp | |
5594 | |
5595 Take it out, restart XEmacs, and it won't try to fontify your postscript | |
5596 files anymore. | |
5597 | 5520 |
5598 @node Q5.3.3, Q5.3.4, Q5.3.2, Miscellaneous | 5521 @node Q5.3.3, Q5.3.4, Q5.3.2, Miscellaneous |
5599 @unnumberedsubsec Q5.3.3: How can I print WYSIWYG a font-locked buffer? | 5522 @unnumberedsubsec Q5.3.3: How can I print WYSIWYG a font-locked buffer? |
5600 | 5523 |
5601 Font-lock looks nice. How can I print (WYSIWYG) the highlighted | 5524 Font-lock looks nice. How can I print (WYSIWYG) the highlighted |
5610 | 5533 |
5611 My printer is a Postscript printer and @code{lpr} only works for | 5534 My printer is a Postscript printer and @code{lpr} only works for |
5612 Postscript files, so how do I get @kbd{M-x lpr-region} and @kbd{M-x | 5535 Postscript files, so how do I get @kbd{M-x lpr-region} and @kbd{M-x |
5613 lpr-buffer} to work? | 5536 lpr-buffer} to work? |
5614 | 5537 |
5615 Put something like this in your @file{.emacs}: | 5538 Put something like this in your @file{init.el}/@file{.emacs}: |
5616 | 5539 |
5617 @lisp | 5540 @lisp |
5618 (setq lpr-command "a2ps") | 5541 (setq lpr-command "a2ps") |
5619 (setq lpr-switches '("-p" "-1")) | 5542 (setq lpr-switches '("-p" "-1")) |
5620 @end lisp | 5543 @end lisp |
5920 | 5843 |
5921 General Info | 5844 General Info |
5922 * Q6.0.1:: What is the status of the XEmacs port to Windows? | 5845 * Q6.0.1:: What is the status of the XEmacs port to Windows? |
5923 * Q6.0.2:: What flavors of MS Windows are supported? | 5846 * Q6.0.2:: What flavors of MS Windows are supported? |
5924 * Q6.0.3:: Where are the XEmacs on MS Windows binaries? | 5847 * Q6.0.3:: Where are the XEmacs on MS Windows binaries? |
5925 * Q6.0.4:: Does XEmacs on MS Windows require an X server to run? | 5848 * Q6.0.4:: Can I build XEmacs on MS Windows with support for X or Cygwin? |
5926 | 5849 |
5927 Building XEmacs on MS Windows | 5850 Building XEmacs on MS Windows |
5928 * Q6.1.1:: I decided to run with X. Where do I get an X server? | 5851 * Q6.1.1:: I decided to run with X. Where do I get an X server? |
5929 * Q6.1.2:: What compiler do I need to compile XEmacs? | 5852 * Q6.1.2:: What compiler do I need to compile XEmacs? |
5930 * Q6.1.3:: How do I compile for the native port? | 5853 * Q6.1.3:: How do I compile for the native port? |
5933 * Q6.1.6:: What do I need for Cygwin? | 5856 * Q6.1.6:: What do I need for Cygwin? |
5934 | 5857 |
5935 Customization and User Interface | 5858 Customization and User Interface |
5936 * Q6.2.1:: How will the port cope with differences in the Windows user interface? | 5859 * Q6.2.1:: How will the port cope with differences in the Windows user interface? |
5937 * Q6.2.2:: How do I change fonts in XEmacs on MS Windows? | 5860 * Q6.2.2:: How do I change fonts in XEmacs on MS Windows? |
5938 * Q6.2.3:: Where do I put my @file{.emacs} file? | 5861 * Q6.2.3:: Where do I put my @file{init.el}/@file{.emacs} file? |
5939 | 5862 |
5940 Miscellaneous | 5863 Miscellaneous |
5941 * Q6.3.1:: Will XEmacs rename all the win32-* symbols to w32-*? | 5864 * Q6.3.1:: Will XEmacs rename all the win32-* symbols to w32-*? |
5942 * Q6.3.2:: What are the differences between the various MS Windows emacsen? | 5865 * Q6.3.2:: What are the differences between the various MS Windows emacsen? |
5943 * Q6.3.3:: What is the porting team doing at the moment? | 5866 * Q6.3.3:: What is the porting team doing at the moment? |
5953 | 5876 |
5954 Is XEmacs really getting ported to MS Windows? What is the status of the port? | 5877 Is XEmacs really getting ported to MS Windows? What is the status of the port? |
5955 | 5878 |
5956 Yes, a group of volunteers actively works on making XEmacs code base | 5879 Yes, a group of volunteers actively works on making XEmacs code base |
5957 cleanly compile and run on MS Windows operating systems. The mailing | 5880 cleanly compile and run on MS Windows operating systems. The mailing |
5958 list at @email{xemacs-nt@@xemacs.org} is dedicated to that effort (please use | 5881 list at @email{xemacs-nt@@xemacs.org} is dedicated to that effort |
5959 the -request address to subscribe). | 5882 (please use the -request address to subscribe). |
5960 | 5883 |
5961 At this time, XEmacs on MS Windows is usable, but lacks some of the | 5884 At this time, XEmacs on MS Windows is stable and full-featured. |
5962 features of XEmacs on UNIX and UNIX-like systems. Notably, | 5885 However, the internationalization (Mule) support does not work -- |
5963 internationalization does not work. | 5886 although this is being actively worked on. |
5964 | 5887 |
5965 @node Q6.0.2, Q6.0.3, Q6.0.1, MS Windows | 5888 @node Q6.0.2, Q6.0.3, Q6.0.1, MS Windows |
5966 @unnumberedsubsec Q6.0.2: What flavors of MS Windows are supported? The list name implies NT only. | 5889 @unnumberedsubsec Q6.0.2: What flavors of MS Windows are supported? The list name implies NT only. |
5967 | 5890 |
5968 The list name is misleading, as XEmacs will support both Windows 95, | 5891 The list name is misleading, as XEmacs will support Windows 95, Windows |
5969 Windows 98 and Windows NT. The MS Windows-specific code is based on | 5892 98, Windows NT, Windows 2000, Windows ME, Windows XP, and all newer |
5970 Microsoft Win32 API, and will not work on MS Windows 3.x or on MS-DOS. | 5893 versions of Windows. The MS Windows-specific code is based on Microsoft |
5894 Win32 API, and will not work on MS Windows 3.x or on MS-DOS. | |
5971 | 5895 |
5972 | 5896 |
5973 @node Q6.0.3, Q6.0.4, Q6.0.2, MS Windows | 5897 @node Q6.0.3, Q6.0.4, Q6.0.2, MS Windows |
5974 @unnumberedsubsec Q6.0.3: Are binary kits available? | 5898 @unnumberedsubsec Q6.0.3: Are binaries available? |
5975 | 5899 |
5976 Binary kits are available at | 5900 Binaries are available at |
5977 @uref{ftp://ftp.xemacs.org/pub/xemacs/binary-kits/win32/} for the | 5901 @uref{ftp://ftp.xemacs.org/pub/xemacs/binaries/win32/} for the native MS |
5978 "plain" MS Windows version. | 5902 Windows version. |
5979 | 5903 |
5980 @node Q6.0.4, Q6.1.1, Q6.0.3, MS Windows | 5904 @node Q6.0.4, Q6.1.1, Q6.0.3, MS Windows |
5981 @unnumberedsubsec Q6.0.4: Does XEmacs on MS Windows require an X server to run? | 5905 @unnumberedsubsec Q6.0.4: Can I build XEmacs on MS Windows with support for X or Cygwin? |
5982 | 5906 |
5983 Short answer: No. | 5907 Yes. XEmacs can be built in several ways in the MS Windows environment. |
5984 | 5908 |
5985 Long answer: XEmacs can be built in several ways in the MS Windows | 5909 The standard way is what we call the "native" port. It uses the Win32 |
5986 environment, some of them requiring an X server and some not. | 5910 API and has no connection with X whatsoever -- it does not require X |
5987 | 5911 libraries to build, nor does it require an X server to run. The native |
5988 One is what we call the "X" port---it requires X libraries to build | 5912 port is the most reliable version and provides the best graphical |
5989 and an X server to run. Internally it uses the Xt event loop and | 5913 support. Almost all development is geared towards this version, and |
5990 makes use of X toolkits. Its look is quite un-Windowsy, but it works | 5914 there is little reason not to use it. |
5991 reliably and supports all of the graphical features of Unix XEmacs. | 5915 |
5992 | 5916 You can also build XEmacs "X" port---it requires X libraries to build |
5993 The other is what we call the "native" port. It uses the Win32 API | 5917 and an X server to run. Internally it uses the Xt event loop and makes |
5994 and does not require X libraries to build, nor does it require an X to | 5918 use of X toolkits. Its look is quite un-Windowsy, and it is not well |
5995 run. In fact, it has no connection with X whatsoever. At this time, | 5919 maintained, but it is being kept around for the time being because it |
5996 the native port obsoletes the X port, providing almost all of its | 5920 has a long history. |
5997 features, including support for menus, scrollbars, toolbars, embedded | |
5998 images and background pixmaps, frame pointers, etc. Most of the | |
5999 future work will be based on the native port. | |
6000 | 5921 |
6001 There is also a third special case, the Cygwin port. It takes | 5922 There is also a third special case, the Cygwin port. It takes |
6002 advantage of Cygnus emulation library under Win32, which enables it to | 5923 advantage of Cygnus emulation library under Win32, which enables it to |
6003 reuse much of the Unix XEmacs code base, such as processes and network | 5924 reuse much of the Unix XEmacs code base, such as processes and network |
6004 support, or internal select() mechanisms. | 5925 support, or internal select() mechanisms. |
6005 | 5926 |
6006 Cygwin port supports all display types---TTY, X & MS gui, and can be | 5927 Cygwin port supports all display types---TTY, X & MS GUI, and can be |
6007 built with support for all three. If you build with ms gui support | 5928 built with support for all three. If you build with MS GUI support |
6008 then the Cygwin version uses the majority of the msw code, which is | 5929 then the Cygwin version uses the majority of the msw code, which is |
6009 mostly related to display. If you want to build with X support you | 5930 mostly related to display. If you want to build with X support you |
6010 need X libraries. If you want to build with tty support you need | 5931 need X libraries. If you want to build with TTY support you need |
6011 ncurses. MS gui requires no additional libraries. | 5932 ncurses. MS GUI requires no additional libraries. |
6012 | 5933 |
6013 Some of the advantages of the Cygwin version are that it: | 5934 The advantages of the Cygwin version are that it integrates well with |
6014 | 5935 Cygwin environment for existing Cygwin users; uses configure so building |
6015 @itemize @bullet | 5936 with different features is very easy; and has process support in X & |
6016 | 5937 tty. |
6017 @item integrates well with Cygwin environment for existing Cygwin users; | |
6018 @item uses configure so building with different features is very easy; | |
6019 @item has process support in X & tty. | |
6020 | |
6021 @end itemize | |
6022 | 5938 |
6023 The disadvantage is that it requires several Unix utilities and the | 5939 The disadvantage is that it requires several Unix utilities and the |
6024 whole Cygwin environment, whereas the native port requires only a | 5940 whole Cygwin environment, whereas the native port requires only a |
6025 suitable MS Windows compiler. Also, it follows the Unix filesystem and | 5941 suitable MS Windows compiler. Also, it follows the Unix filesystem and |
6026 process model very closely (some will undoubtedly view this as an | 5942 process model very closely (some will undoubtedly view this as an |
6075 Similar as on Unix; use the usual `configure' and `make' process. | 5991 Similar as on Unix; use the usual `configure' and `make' process. |
6076 Some problems to watch out for: | 5992 Some problems to watch out for: |
6077 | 5993 |
6078 @itemize @bullet | 5994 @itemize @bullet |
6079 @item | 5995 @item |
6080 make sure HOME is set. This controls where you @file{.emacs} file comes | 5996 make sure HOME is set. This controls where you |
6081 from; | 5997 @file{init.el}/@file{.emacs} file comes from; |
6082 | 5998 |
6083 @item | 5999 @item |
6084 CYGWIN needs to be set to tty for process support work. e.g. CYGWIN=tty; | 6000 CYGWIN needs to be set to tty for process support work. e.g. CYGWIN=tty; |
6085 (use CYGWIN32=tty under b19 and older.) | 6001 (use CYGWIN32=tty under b19 and older.) |
6086 | 6002 |
6087 @item | 6003 @item |
6088 picking up some other grep or other unix like tools can kill configure; | 6004 picking up some other grep or other UNIX-like tools can kill configure; |
6089 | 6005 |
6090 @item | 6006 @item |
6091 static heap too small, adjust src/sheap-adjust.h to a more positive | 6007 static heap too small, adjust @file{src/sheap-adjust.h} to a more positive |
6092 number; | 6008 number; |
6093 | 6009 |
6094 @item | 6010 @item |
6095 The Cygwin version doesn't understand @file{//machine/path} type paths so you | 6011 The Cygwin version doesn't understand @file{//machine/path} type paths so you |
6096 will need to manually mount a directory of this form under a unix style | 6012 will need to manually mount a directory of this form under a unix style |
6187 (set-face-font 'modeline "MS Sans Serif:Regular:10") | 6103 (set-face-font 'modeline "MS Sans Serif:Regular:10") |
6188 @end display | 6104 @end display |
6189 | 6105 |
6190 | 6106 |
6191 @node Q6.2.3, Q6.3.1, Q6.2.2, MS Windows | 6107 @node Q6.2.3, Q6.3.1, Q6.2.2, MS Windows |
6192 @unnumberedsubsec Q6.2.3: Where do I put my @file{.emacs} file? | 6108 @unnumberedsubsec Q6.2.3: Where do I put my @file{init.el}/@file{.emacs} file? |
6193 | 6109 |
6194 If the HOME environment variable is set, @file{.emacs} will be looked for | 6110 @file{init.el} is the name of the init file starting with 21.4, and is |
6195 there. Else the directory defaults to `c:\'. | 6111 located in the subdirectory @file{.xemacs/} of your home directory. In |
6112 prior versions, the init file is called @file{.emacs} and is located in | |
6113 your home directory. Your home directory under Windows is determined by | |
6114 the HOME environment variable. If this is not set, it defaults to | |
6115 `C:\'. | |
6196 | 6116 |
6197 @node Q6.3.1, Q6.3.2, Q6.2.3, MS Windows | 6117 @node Q6.3.1, Q6.3.2, Q6.2.3, MS Windows |
6198 @unnumberedsec 6.3: Miscellaneous | 6118 @unnumberedsec 6.3: Miscellaneous |
6199 @unnumberedsubsec Q6.3.1: Will XEmacs rename all the win32-* symbols to w32-*? | 6119 @unnumberedsubsec Q6.3.1: Will XEmacs rename all the win32-* symbols to w32-*? |
6200 | 6120 |
6210 | 6130 |
6211 Thus all the XEmacs variables and functions directly related to Win32 | 6131 Thus all the XEmacs variables and functions directly related to Win32 |
6212 are prefixed `mswindows-'. The user-variables shared with NT Emacs | 6132 are prefixed `mswindows-'. The user-variables shared with NT Emacs |
6213 will be provided as compatibility aliases. | 6133 will be provided as compatibility aliases. |
6214 | 6134 |
6215 Architectural note: We believe that there should be a very small | 6135 Architectural note: We believe that there should be a very small number |
6216 number of window-systems-specific variables, and will try to provide | 6136 of window-systems-specific variables, and we provide generic interfaces |
6217 generic interfaces whenever possible. | 6137 whenever possible. Thus, most of the equivalents of GNU Emacs `w32-*' |
6138 functions and variables (as well as the corresponding `x-*' versions) | |
6139 are non-window-system-specific in XEmacs, and the issue of `mswindows-*' | |
6140 vs. `w32-*' does not come up much. | |
6218 | 6141 |
6219 | 6142 |
6220 @node Q6.3.2, Q6.3.3, Q6.3.1, MS Windows | 6143 @node Q6.3.2, Q6.3.3, Q6.3.1, MS Windows |
6221 @unnumberedsubsec Q6.3.2: What are the differences between the various MS Windows emacsen? | 6144 @unnumberedsubsec Q6.3.2: What are the differences between the various MS Windows emacsen? |
6222 | 6145 |
6318 | 6241 |
6319 | 6242 |
6320 @node Q6.3.3, Q6.4.1, Q6.3.2, MS Windows | 6243 @node Q6.3.3, Q6.4.1, Q6.3.2, MS Windows |
6321 @unnumberedsubsec Q6.3.3: What is the porting team doing at the moment? | 6244 @unnumberedsubsec Q6.3.3: What is the porting team doing at the moment? |
6322 | 6245 |
6246 (as of March 2001) | |
6247 | |
6323 The porting team is continuing work on the MS Windows-specific code. | 6248 The porting team is continuing work on the MS Windows-specific code. |
6249 Major projects are the development of Mule (internationalization) | |
6250 support for Windows and the improvement of the widget support (better | |
6251 support for dialog boxes, buttons, edit fields, and similar UI | |
6252 elements). | |
6324 | 6253 |
6325 @node Q6.4.1, ,Q6.3.3, MS Windows | 6254 @node Q6.4.1, ,Q6.3.3, MS Windows |
6326 @unnumberedsec 6.3: Troubleshooting | 6255 @unnumberedsec 6.3: Troubleshooting |
6327 @unnumberedsubsec Q6.4.1 XEmacs won't start on Windows. (NEW) | 6256 @unnumberedsubsec Q6.4.1 XEmacs won't start on Windows. (NEW) |
6328 | 6257 |