| [Top] | [Contents] | [Index] | [ ? ] |
This is the guide to the XEmacs Frequently Asked Questions list--a compendium of questions and answers pertaining to one of the finest programs ever written. XEmacs is much more than just a Text Editor.
This FAQ is freely redistributable. This FAQ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you have a Web browser, the official hypertext version is at http://www.xemacs.org/faq/xemacs-faq.html
| 1 Introduction, Policy, Credits | Introduction, Policy, Credits. | |
| 2 Installation and Trouble Shooting | Installation and Trouble Shooting. | |
| 3 Customization and Options | Customization and Options. | |
| 4 Major Subsystems | Major Subsystems. | |
| 5 The Miscellaneous Stuff | The Miscellaneous Stuff. | |
| 6 XEmacs on MS Windows | XEmacs on Microsoft Windows. | |
| 7 What the Future Holds | What the Future Holds. | |
| -- The Detailed Node Listing --- | ||
|---|---|---|
| Introduction, Policy, Credits | ||
| 1.0: Introduction | What is XEmacs? | |
| Q1.0.2: What is the current version of XEmacs? | What is the current version of XEmacs? | |
| Q1.0.3: Where can I find it? | Where can I find it? | |
| Q1.0.4: Why Another Version of Emacs? | Why Another Version of Emacs? | |
| Q1.0.5: Why Haven't XEmacs and GNU Emacs Merged? | Why Haven't XEmacs and GNU Emacs Merged? | |
| Q1.0.6: Where can I get help? | Where can I get help? | |
| Q1.0.7: Where are the mailing lists archived? | Where are the mailing lists archived? | |
| Q1.0.8: How do you pronounce XEmacs? | How do you pronounce XEmacs? | |
| Q1.0.9: What does XEmacs look like? | What does XEmacs look like? | |
| Q1.0.10: Is there a port of XEmacs to Microsoft ('95 or NT)? | Is there a port of XEmacs to Microsoft ('95 or NT)? | |
| Q1.0.11: Is there a port of XEmacs to the Macintosh? | Is there a port of XEmacs to the Macintosh? | |
| Q1.0.12: Is there a port of XEmacs to NextStep? | Is there a port of XEmacs to NextStep? | |
| Q1.0.13: Is there a port of XEmacs to OS/2? | Is there a port of XEmacs to OS/2? | |
| Q1.0.14: Where can I obtain a printed copy of the XEmacs User's Manual? | Where can I get a printed copy of the XEmacs users manual? | |
| Policies: | ||
| 1.1: Policies | What is the FAQ editorial policy? | |
| Q1.1.2: How do I become a Beta Tester? | How do I become a Beta Tester? | |
| Q1.1.3: How do I contribute to XEmacs itself? | How do I contribute to XEmacs itself? | |
| Credits: | ||
| 1.2: Credits | Who wrote XEmacs? | |
| Q1.2.2: Who contributed to this version of the FAQ? | Who contributed to this version of the FAQ? | |
| Q1.2.3: Who contributed to the FAQ in the past? | Who contributed to the FAQ in the past? | |
| Internationalization: | ||
| 1.3: Internationalization | What is the status of internationalization support aka MULE (including Asian language support? | |
| Q1.3.2: How can I help with internationalization? | How can I help with internationalization? | |
| Q1.3.3: How do I type non-ASCII characters? | How do I type non-ASCII characters? | |
| Q1.3.4: Can XEmacs messages come out in a different language? | Can XEmacs messages come out in a different language? | |
| Q1.3.5: Please explain the various input methods in MULE/XEmacs | Please explain the various input methods in MULE/XEmacs | |
| Q1.3.6: How do I portably code for MULE/XEmacs? | How do I portably code for MULE/XEmacs? | |
| Q1.3.7: How about Cyrillic Modes? | How about Cyrillic Modes? | |
| Getting Started: | ||
| 1.4: Getting Started, Backing up & Recovery | What is an `init.el' or `.emacs' and is there a sample one? | |
| Q1.4.2: Can I use the same `init.el'/`.emacs' with the other Emacs? | Can I use the same `init.el'/`.emacs' with the other Emacs? | |
| Q1.4.3: Any good tutorials around? | Any good XEmacs tutorials around? | |
| Q1.4.4: May I see an example of a useful XEmacs Lisp function? | May I see an example of a useful XEmacs Lisp function? | |
| Q1.4.5: And how do I bind it to a key? | And how do I bind it to a key? | |
| Q1.4.6: What's the difference between a macro and a function? | What's the difference between a macro and a function? | |
| Installation and Trouble Shooting | ||
| 2.0: Installation | Running XEmacs without installing. | |
| Q2.0.2: XEmacs is too big | XEmacs is too big. | |
| Q2.0.3: Compiling XEmacs with Netaudio. | Compiling XEmacs with Netaudio. | |
| Q2.0.4: Problems with Linux and ncurses. | Problems with Linux and ncurses. | |
| Q2.0.5: Do I need X11 to run XEmacs? | Do I need X11 to run XEmacs? | |
| Q2.0.6: I'm having strange crashes. What do I do? | I'm having strange crashes. What do I do? | |
| Q2.0.7: Libraries in non-standard locations | Libraries in non-standard locations. | |
| Q2.0.8: can't resolve symbol _h_errno | can't resolve symbol _h_errno | |
| Q2.0.9: Where do I find external libraries? | Where do I find external libraries? | |
| Q2.0.10: After I run configure I find a core dump, is something wrong? | After I run configure I find a coredump, is something wrong? | |
| Q2.0.11: XEmacs doesn't resolve hostnames. | XEmacs can't resolve host names. | |
| Q2.0.12: Why can't I strip XEmacs? | Why can't I strip XEmacs? | |
| Q2.0.13: I don't need no steenkin' packages. Do I? (NEW) | I don't need no steenkin' packages. Do I? (NEW) | |
| Q2.0.12: How do I figure out which packages to install? (NEW) | How do I figure out which packages to install? (NEW) | |
| Trouble Shooting: | ||
| 2.1: Trouble Shooting | XEmacs just crashed on me! | |
| Q2.1.2: Cryptic Minibuffer messages. | Cryptic Minibuffer messages. | |
| Q2.1.3: Translation Table Syntax messages at Startup | Translation Table Syntax messages at Startup. | |
| Q2.1.4: Startup warnings about deducing proper fonts? | Startup warnings about deducing proper fonts? | |
| Q2.1.5: XEmacs cannot connect to my X Terminal! | XEmacs cannot connect to my X Terminal. | |
| Q2.1.6: XEmacs just locked up my Linux X server! | XEmacs just locked up my Linux X server. | |
| Q2.1.7: HP Alt key as Meta. | HP Alt key as Meta. | |
| Q2.1.8: got (wrong-type-argument color-instance-p nil) | got (wrong-type-argument color-instance-p nil)! | |
| Q2.1.9: XEmacs causes my OpenWindows 3.0 server to crash. | XEmacs causes my OpenWindows 3.0 server to crash. | |
| Q2.1.10: Warnings from incorrect key modifiers. | Warnings from incorrect key modifiers. | |
| Q2.1.11: `Can't instantiate image error...' in toolbar | Can't instantiate image error... in toolbar | |
| Q2.1.12: Problems with Regular Expressions on DEC OSF1. | Regular Expression Problems on DEC OSF1. | |
Q2.1.13: HP/UX 10.10 and create_process failure. | HP/UX 10.10 and create_process failure | |
| Q2.1.14: C-g doesn't work for me. Is it broken? | C-g doesn't work for me. Is it broken? | |
| Q2.1.15: How to Debug an XEmacs problem with a debugger | How to debug an XEmacs problem with a debugger. | |
Q2.1.16: XEmacs crashes in strcat on HP/UX 10 | XEmacs crashes in strcat on HP/UX 10. | |
| Q2.1.17: `Marker does not point anywhere' | `Marker does not point anywhere'. | |
| Q2.1.18: XEmacs is outputting lots of X errors. | XEmacs is outputting lots of X errors. | |
| Q2.1.19: XEmacs does not follow the local timezone. | XEmacs does not follow the local timezone. | |
| Q2.1.20: `Symbol's function definition is void: hkey-help-show.' | `Symbol's function definition is void: hkey-help-show.' | |
| Q2.1.21: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q2.1.22: XEmacs seems to take a really long time to do some things | XEmacs seems to take a really long time to do some things. | |
| Q2.1.23: Movemail on Linux does not work for XEmacs 19.15 and later. | Movemail on Linux does not work for XEmacs 19.15 and later. | |
| Q2.1.24: XEmacs won't start without network. (NEW) | XEmacs won't start without network. (NEW) | |
| Q2.1.25:: After upgrading, XEmacs won't do `foo' any more! (NEW) | After upgrading, XEmacs won't do `foo' any more! (NEW) | |
| Customization and Options | ||
| 3.0: Customization -- Emacs Lisp and `init.el'/`.emacs' | What version of Emacs am I running? | |
| Q3.0.2: How can I evaluate Emacs-Lisp expressions? | How do I evaluate Elisp expressions? | |
Q3.0.3: (setq tab-width 6) behaves oddly. | (setq tab-width 6) behaves oddly. | |
Q3.0.4: How can I add directories to the load-path? | How can I add directories to the load-path? | |
| Q3.0.5: How to check if a lisp function is defined? | How to check if a lisp function is defined? | |
Q3.0.6: Can I force the output of (face-list) to a buffer? | Can I force the output of (face-list) to a buffer? | |
Q3.0.7: Font selections in don't get saved after Save Options. | Font selections don't get saved after Save Options. | |
| Q3.0.8: How do I get a single minibuffer frame? | How do I make a single minibuffer frame? | |
Q3.0.9: What is Customize? | What is Customize? | |
| X Window System & Resources: | ||
| 3.1: X Window System & Resources | Where is a list of X resources? | |
| Q3.1.2: How can I detect a color display? | How can I detect a color display? | |
| Q3.1.3: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q3.1.4: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q3.1.5: How can I get the icon to just say `XEmacs'? | How can I get the icon to just say `XEmacs'? | |
| Q3.1.6: How can I have the window title area display the full path? | How can I have the window title area display the full path? | |
| Q3.1.7: `xemacs -name junk' doesn't work? | `xemacs -name junk' doesn't work? | |
| Q3.1.8: `-iconic' doesn't work. | `-iconic' doesn't work. | |
| Textual Fonts & Colors: | ||
| 3.2: Textual Fonts & Colors | How can I set color options from `init.el'/`.emacs'? | |
| Q3.2.2: How do I set the text, menu and modeline fonts? | How do I set the text, menu and modeline fonts? | |
| Q3.2.3: How can I set the colors when highlighting a region? | How can I set the colors when highlighting a region? | |
| Q3.2.4: How can I limit color map usage? | How can I limit color map usage? | |
| Q3.2.5: My tty supports color, but XEmacs doesn't use them. | My tty supports color, but XEmacs doesn't use them. | |
| Q3.2.6: Can I have pixmap backgrounds in XEmacs? | Can I have pixmap backgrounds in XEmacs? | |
| The Modeline: | ||
| 3.3: The Modeline | How can I make the modeline go away? | |
| Q3.3.2: How do you have XEmacs display the line number in the modeline? | How do you have XEmacs display the line number in the modeline? | |
| Q3.3.3: How do I get XEmacs to put the time of day on the modeline? | How do I get XEmacs to put the time of day on the modeline? | |
| Q3.3.4: How do I turn off current chapter from AUC TeX modeline? | How do I turn off current chapter from AUC TeX modeline? | |
| Q3.3.5: How can one change the modeline color based on the mode used? | How can one change the modeline color based on the mode used? | |
| Multiple Device Support: | ||
| 3.4: Multiple Device Support | How do I open a frame on another screen of my multi-headed display? | |
| Q3.4.2: Can I really connect to a running XEmacs after calling up over a modem? How? | Can I really connect to a running XEmacs after calling up over a modem? How? | |
| The Keyboard: | ||
| 3.5: The Keyboard | How can I bind complex functions (or macros) to keys? | |
| Q3.5.2: How can I stop down-arrow from adding empty lines to the bottom of my buffers? | How can I stop down-arrow from adding empty lines to the bottom of my buffers? | |
| Q3.5.3: How do I bind C-. and C-; to scroll one line up and down? | How do I bind C-. and C-; to scroll one line up and down? | |
| Q3.5.4: Globally binding Delete? | Globally binding Delete? | |
| Q3.5.5: Scrolling one line at a time. | Scrolling one line at a time. | |
| Q3.5.6: How to map Help key alone on Sun type4 keyboard? | How to map Help key alone on Sun type4 keyboard? | |
| Q3.5.7: How can you type in special characters in XEmacs? | How can you type in special characters in XEmacs? | |
| Q3.5.8: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q3.5.9: How do I make the Delete key delete forward? | How do I make the Delete key delete forward? | |
| Q3.5.10: Can I turn on sticky modifier keys? | Can I turn on sticky modifier keys? | |
| Q3.5.11: How do I map the arrow keys? | How do I map the arrow keys? | |
| The Cursor: | ||
| 3.6: The Cursor | Is there a way to make the bar cursor thicker? | |
| Q3.6.2: Is there a way to get back the block cursor? | Is there a way to get back the old block cursor where the cursor covers the character in front of the point? | |
| Q3.6.3: Can I make the cursor blink? | Can I make the cursor blink? | |
| The Mouse and Highlighting: | ||
| 3.7: The Mouse and Highlighting | How can I turn off Mouse pasting? | |
| Q3.7.2: How do I set control/meta/etc modifiers on mouse buttons? | How do I set control/meta/etc modifiers on mouse buttons? | |
| Q3.7.3: Clicking the left button does not do anything in buffer list. | Clicking the left button does not do anything in buffer list. | |
| Q3.7.4: How can I get a list of buffers when I hit mouse button 3? | How can I get a list of buffers when I hit mouse button 3? | |
| Q3.7.5: Why does cut-and-paste not work between XEmacs and a cmdtool? | Why does cut-and-paste not work between XEmacs and a cmdtool? | |
| Q3.7.6: How I can set XEmacs up so that it pastes where the text cursor is? | How I can set XEmacs up so that it pastes where the text cursor is? | |
| Q3.7.7: How do I select a rectangular region? | How do I select a rectangular region? | |
| Q3.7.8: Why does M-w take so long? | Why does M-w take so long? | |
| The Menubar and Toolbar: | ||
| 3.8: The Menubar and Toolbar | How do I get rid of the menu (or menubar)? | |
| Q3.8.2: Can I customize the basic menubar? | Can I customize the basic menubar? | |
Q3.8.3: How do I control how many buffers are listed in the menu Buffers List? | How do I control how many buffers are listed in the menu Buffers list? | |
Q3.8.4: Resources like Emacs*menubar*font are not working? | Resources like Emacs*menubar*font are not working? | |
| Q3.8.5: How can I bind a key to a function to toggle the toolbar? | How can I bind a key to a function to toggle the toolbar? | |
| Scrollbars: | ||
| 3.9: Scrollbars | How can I disable the scrollbar? | |
| Q3.9.2: How can one use resources to change scrollbar colors? | How can one use resources to change scrollbar colors? | |
| Q3.9.3: Moving the scrollbar can move the point; can I disable this? | Moving the scrollbar can move the point; can I disable this? | |
| Q3.9.4: How can I turn off automatic horizontal scrolling in specific modes? | How can I turn off automatic horizontal scrolling in specific modes? | |
| Text Selections: | ||
| 3.10: Text Selections | How can I turn off or change highlighted selections? | |
| Q3.10.2: How do I get that typing on an active region removes it? | How do I get that typing on an active region removes it? | |
| Q3.10.3: Can I turn off the highlight during isearch? | Can I turn off the highlight during isearch? | |
| Q3.10.4: How do I turn off highlighting after C-x C-p (mark-page)? | How do I turn off highlighting after C-x C-p (mark-page)? | |
| Q3.10.5: The region disappears when I hit the end of buffer while scrolling. | The region disappears when I hit the end of buffer while scrolling. | |
| Major Subsystems | ||
| 4.0: Reading Mail with VM | How do I set up VM to retrieve remote mail using POP? | |
| Q4.0.2: How do I get VM to filter mail for me? | How do I get VM to filter mail for me? | |
| Q4.0.3: How can I get VM to automatically check for new mail? | How can I get VM to automatically check for new mail? | |
| Q4.0.4: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q4.0.5: How do I get my outgoing mail archived? | How do I get my outgoing mail archived? | |
| Q4.0.6: I have various addresses at which I receive mail. How can I tell VM to ignore them when doing a "reply-all"? | I have various addresses at which I receive mail. How can I tell VM to ignore them when doing a "reply-all"? | |
| Q4.0.7: Is there a mailing list or FAQ for VM? | Is there a mailing list or FAQ for VM? | |
| Q4.0.8: Remote mail reading with VM. | Remote mail reading with VM. | |
| Q4.0.9: rmail or VM gets an error incorporating new mail. | rmail or VM gets an error incorporating new mail. | |
| Q4.0.10: How do I make VM stay in a single frame? | How do I make VM stay in a single frame? | |
| Q4.0.11: How do I make VM or mh-e display graphical smilies? | How do I make VM or mh-e display graphical smilies? | |
| Q4.0.12: Customization of VM not covered in the manual, or here. | Customization of VM not covered in the manual or here. | |
| Web browsing with W3: | ||
| 4.1: Web browsing with W3 | What is W3? | |
| Q4.1.2: How do I run W3 from behind a firewall? | How do I run W3 from behind a firewall? | |
| Q4.1.3: Is it true that W3 supports style sheets and tables? | Is it true that W3 supports style sheets and tables? | |
| Reading Netnews and Mail with Gnus: | ||
| 4.2: Reading Netnews and Mail with Gnus | GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus, Quassia Gnus, argh! | |
| Q4.2.2: This question intentionally left blank. | [This question intentionally left blank] | |
| Q4.2.3: How do I make Gnus stay within a single frame? | How do I make Gnus stay within a single frame? | |
| Q4.2.4: How do I customize the From: line? | How do I customize the From: line? | |
| Other Mail & News: | ||
| 4.3: Other Mail & News | How can I read and/or compose MIME messages? | |
| Q4.3.2: What is TM and where do I get it? | What is TM and where do I get it? | |
Q4.3.3: Why isn't this movemail program working? | Why isn't this movemail program working? | |
| Q4.3.4: Movemail is also distributed by Netscape? Can that cause problems? | Movemail is also distributed by Netscape? Can that cause problems? | |
| Q4.3.5: Where do I find pstogif (required by tm)? | Where do I find pstogif (required by tm)? | |
| Sparcworks, EOS, and WorkShop: | ||
| 4.4: Sparcworks, EOS, and WorkShop | What is SPARCworks, EOS, and WorkShop | |
| Q4.4.2: How do I start the Sun Workshop support in XEmacs 21? | How do I start the Sun Workshop support in XEmacs 21? | |
| Energize: | ||
| 4.5: Energize | What is/was Energize? | |
| Infodock: | ||
| 4.6: Infodock | What is Infodock? | |
| Other Unbundled Packages: | ||
| 4.7: Other Unbundled Packages | What is AUC TeX? Where do you get it? | |
| Q4.7.2: Are there any Emacs Lisp Spreadsheets? | Are there any Emacs Lisp Spreadsheets? | |
| Q4.7.3: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q4.7.4: Problems installing AUC TeX. | Problems installing AUC TeX | |
| Q4.7.5: Is there a reason for an Emacs package not to be included in XEmacs? | Is there a reason for an Emacs package not to be included in XEmacs? | |
| Q4.7.5: Is there a MatLab mode? | Is there a MatLab mode? | |
| The Miscellaneous Stuff | ||
| 5.0: Major & Minor Modes | How can I do source code highlighting using font-lock? | |
| Q5.0.2: I do not like cc-mode. How do I use the old c-mode? | I do not like cc-mode. How do I use the old c-mode? | |
| Q5.0.3: How do I get `More' Syntax Highlighting on by default? | How do I get `More' Syntax Highlighting on by default? | |
| Q5.0.4: How can I enable auto-indent and/or Filladapt? | How can I enable auto-indent and/or Filladapt? | |
| Q5.0.5: How can I get XEmacs to come up in text/auto-fill mode by default? | How can I get XEmacs to come up in text/auto-fill mode by default? | |
| Q5.0.6: How do I start up a second shell buffer? | How do I start up a second shell buffer? | |
| Q5.0.7: Telnet from shell filters too much | Telnet from shell filters too much. | |
| Q5.0.8: Why does edt emulation not work? | Why does edt emulation not work? | |
| Q5.0.9: How can I emulate VI and use it as my default mode? | How can I emulate VI and use it as my default mode? | |
| Q5.0.10: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q5.0.11: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q5.0.12: How do I disable gnuserv from opening a new frame? | How do I disable gnuserv from opening a new frame? | |
| Q5.0.13: How do I start gnuserv so that each subsequent XEmacs is a client? | How do I start gnuserv so that each subsequent XEmacs is a client? | |
| Q5.0.14: Strange things are happening in Shell Mode. | Strange things are happening in Shell Mode. | |
| Q5.0.15: Where do I get the latest CC Mode? | Where do I get the latest CC Mode? | |
| Q5.0.16: I find auto-show-mode disconcerting. How do I turn it off? | I find auto-show-mode disconcerting. How do I turn it off? | |
| Q5.0.17: How can I get two instances of info? | How can I get two instances of info? | |
| Q5.0.18: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q5.0.19: Is there something better than LaTeX mode? | Is there something better than LaTeX mode? | |
| Q5.0.20: Is there a way to start a new XEmacs if there's no gnuserv running, and otherwise use gnuclient? | Is there a way to start a new XEmacs if there's no gnuserv running, and otherwise use gnuclient? | |
| Emacs Lisp Programming Techniques: | ||
| 5.1: Emacs Lisp Programming Techniques | The difference in key sequences between XEmacs and GNU Emacs? | |
| Q5.1.2: Can I generate "fake" keyboard events? | Can I generate "fake" keyboard events? | |
Q5.1.3: Could you explain read-kbd-macro in more detail? | Could you explain read-kbd-macro in more detail? | |
Q5.1.4: What is the performance hit of let? | What is the performance hit of let? | |
Q5.1.5: What is the recommended use of setq? | What is the recommended use of setq? | |
Q5.1.6: What is the typical misuse of setq ? | What is the typical misuse of setq ? | |
Q5.1.7: I like the do form of cl, does it slow things down? | I like the do form of cl, does it slow things down? | |
| Q5.1.8: I like recursion, does it slow things down? | I like recursion, does it slow things down? | |
| Q5.1.9: How do I put a glyph as annotation in a buffer? | How do I put a glyph as annotation in a buffer? | |
Q5.1.10: map-extents won't traverse all of my extents! | map-extents won't traverse all of my extents! | |
| Q5.1.11: My elisp program is horribly slow. Is there | My elisp program is horribly slow. Is there an easy way to find out where it spends time? | |
| Sound: | ||
| Q5.2.1: How do I turn off the sound? | How do I turn off the sound? | |
| Q5.2.2: How do I get funky sounds instead of a boring beep? | How do I get funky sounds instead of a boring beep? | |
| Q5.2.3: What's NAS, how do I get it? | What's NAS, how do I get it? | |
| Q5.2.4: Sunsite sounds don't play. | Sunsite sounds don't play. | |
| Miscellaneous: | ||
| 5.3: Miscellaneous | How do you make XEmacs indent CL if-clauses correctly? | |
| Q5.3.2: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q5.3.3: How can I print WYSIWYG a font-locked buffer? | How can I print WYSIWYG a font-locked buffer? | |
| Q5.3.4: Getting M-x lpr to work with postscript printer. | Getting M-x lpr to work with postscript printer. | |
| Q5.3.5: How do I specify the paths that XEmacs uses for finding files? | How do I specify the paths that XEmacs uses for finding files? | |
| Q5.3.6: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q5.3.7: Can I have the end of the buffer delimited in some way? | Can I have the end of the buffer delimited in some way? | |
| Q5.3.8: How do I insert today's date into a buffer? | How do I insert today's date into a buffer? | |
| Q5.3.9: Are only certain syntactic character classes available for abbrevs? | Are only certain syntactic character classes available for abbrevs? | |
| Q5.3.10: How can I get those oh-so-neat X-Face lines? | How can I get those oh-so-neat X-Face lines? | |
| Q5.3.11: How do I add new Info directories? | How do I add new Info directories? | |
| Q5.3.12: What do I need to change to make printing work? | What do I need to change to make printing work? | |
| XEmacs on MS Windows | ||
| General Info: | ||
| 6.0: General Info | What is the status of the XEmacs port to Windows? | |
| Q6.0.2: What flavors of MS Windows are supported? The list name implies NT only. | What flavors of MS Windows are supported? The list name implies NT only. | |
| Q6.0.3: Are binaries available? | Are binaries available? | |
| Q6.0.4: Can I build XEmacs on MS Windows with X support? Do I need to? | Can I build XEmacs on MS Windows with X support? Do I need to? | |
| Q6.0.5: I'd like to help out. What do I do? | I'd like to help out. What do I do? | |
| Q6.0.6: What are Cygwin and MinGW, and do I need them to run XEmacs? | What are Cygwin and MinGW, and do I need them to run XEmacs? | |
| Q6.0.7: What exactly are all the different ways to build XEmacs under Windows? | What exactly are all the different ways to build XEmacs under Windows? | |
| Building XEmacs on MS Windows: | ||
| 6.1: Building XEmacs on MS Windows | What compiler/libraries do I need to compile XEmacs? | |
| Q6.1.2: How do I compile the native port? | How do I compile the native port? | |
| Q6.1.3: What do I need for Cygwin? | What do I need for Cygwin? | |
| Q6.1.4: How do I compile under Cygwin? | How do I compile under Cygwin? | |
| Q6.1.5: How do I compile using MinGW (aka `the -mno-cygwin flag to gcc')? | How do I compile using MinGW (aka `the -mno-cygwin flag to gcc')? | |
| Q6.1.6: I decided to run with X. Where do I get an X server? | I decided to run with X. Where do I get an X server? | |
| Q6.1.7: How do I compile with X support? | How do I compile with X support? | |
| Customization and User Interface: | ||
| 6.2: Customization and User Interface | How does the port cope with differences in the Windows user interface? | |
| Q6.2.2: How do I change fonts in XEmacs on MS Windows? | How do I change fonts in XEmacs on MS Windows? | |
| Q6.2.3: Where do I put my `init.el'/`.emacs' file? | Where do I put my `init.el'/`.emacs' file? | |
| Q6.2.4: How do I get Windows Explorer to associate a file type with XEmacs? | How do I get Windows Explorer to associate a file type with XEmacs? | |
| Q6.2.5: Is it possible to print from XEmacs? | Is it possible to print from XEmacs? | |
| Miscellaneous: | ||
| 6.3: Miscellaneous | Does XEmacs rename all the `win32-*' symbols to `w32-*'? | |
| Q6.3.2: What are the differences between the various MS Windows emacsen? | What are the differences between the various MS Windows emacsen? | |
| Q6.3.3: XEmacs 21.1 on Windows used to spawn an ugly console window on every startup. Has that been fixed? | XEmacs 21.1 on Windows used to spawn an ugly console window on every startup. Has that been fixed? | |
| Q6.3.4: What is the porting team doing at the moment? | What is the porting team doing at the moment? | |
| Troubleshooting: | ||
| 6.3: Troubleshooting | XEmacs won't start on Windows. | |
| Q6.4.2 Why do I get a blank toolbar on Windows 95? | Why do I get a blank toolbar on Windows 95? | |
| Current Events: | ||
| 7.0: Changes | What new features will be in XEmacs soon? | |
| Q7.0.2: What's new in XEmacs 21.4? | What's new in XEmacs 21.4? | |
| Q7.0.3: What's new in XEmacs 21.1? | What's new in XEmacs 21.1? | |
| Q7.0.4: What's new in XEmacs 20.4? | What's new in XEmacs 20.4? | |
| Q7.0.5: What's new in XEmacs 20.3? | What's new in XEmacs 20.3? | |
| Q7.0.6: What's new in XEmacs 20.2? | What's new in XEmacs 20.2? | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Learning XEmacs is a lifelong activity. Even people who have used Emacs for years keep discovering new features. Therefore this document cannot be complete. Instead it is aimed at the person who is either considering XEmacs for their own use, or has just obtained it and is wondering what to do next. It is also useful as a reference to available resources.
The previous maintainer of the FAQ was Anthony Rossini, who started it, after getting tired of hearing JWZ complain about repeatedly having to answer questions. Ben Wing and Chuck Thompson, the principal authors of XEmacs, then took over and Ben did a massive update reorganizing the whole thing. At which point Anthony took back over, but then had to give it up again. Some of the other contributors to this FAQ are listed later in this document.
The previous version was converted to hypertext format, and edited by Steven L. Baur. It was converted back to texinfo by Hrvoje Niksic. The FAQ was then maintained by Andreas Kaempf, who passed it on to ChristianNybø.
If you notice any errors or items which should be added or amended to this FAQ please send email to Sandra Wambold. Include `XEmacs FAQ' on the Subject: line.
| Introduction: | ||
|---|---|---|
| 1.0: Introduction | What is XEmacs? | |
| Q1.0.2: What is the current version of XEmacs? | What is the current version of XEmacs? | |
| Q1.0.3: Where can I find it? | Where can I find it? | |
| Q1.0.4: Why Another Version of Emacs? | Why Another Version of Emacs? | |
| Q1.0.5: Why Haven't XEmacs and GNU Emacs Merged? | Why Haven't XEmacs and GNU Emacs Merged? | |
| Q1.0.6: Where can I get help? | Where can I get help? | |
| Q1.0.7: Where are the mailing lists archived? | Where are the mailing lists archived? | |
| Q1.0.8: How do you pronounce XEmacs? | How do you pronounce XEmacs? | |
| Q1.0.9: What does XEmacs look like? | What does XEmacs look like? | |
| Q1.0.10: Is there a port of XEmacs to Microsoft ('95 or NT)? | Is there a port of XEmacs to Microsoft ('95 or NT)? | |
| Q1.0.11: Is there a port of XEmacs to the Macintosh? | Is there a port of XEmacs to the Macintosh? | |
| Q1.0.12: Is there a port of XEmacs to NextStep? | Is there a port of XEmacs to NextStep? | |
| Q1.0.13: Is there a port of XEmacs to OS/2? | Is there a port of XEmacs to OS/2? | |
| Q1.0.14: Where can I obtain a printed copy of the XEmacs User's Manual? | Where can I get a printed copy of the XEmacs users manual? | |
| Policies: | ||
| 1.1: Policies | What is the FAQ editorial policy? | |
| Q1.1.2: How do I become a Beta Tester? | How do I become a Beta Tester? | |
| Q1.1.3: How do I contribute to XEmacs itself? | How do I contribute to XEmacs itself? | |
| Credits: | ||
| 1.2: Credits | Who wrote XEmacs? | |
| Q1.2.2: Who contributed to this version of the FAQ? | Who contributed to this version of the FAQ? | |
| Q1.2.3: Who contributed to the FAQ in the past? | Who contributed to the FAQ in the past? | |
| Internationalization: | ||
| 1.3: Internationalization | What is the status of internationalization support aka MULE (including Asian language support? | |
| Q1.3.2: How can I help with internationalization? | How can I help with internationalization? | |
| Q1.3.3: How do I type non-ASCII characters? | How do I type non-ASCII characters? | |
| Q1.3.4: Can XEmacs messages come out in a different language? | Can XEmacs messages come out in a different language? | |
| Q1.3.5: Please explain the various input methods in MULE/XEmacs | Please explain the various input methods in MULE/XEmacs | |
| Q1.3.6: How do I portably code for MULE/XEmacs? | How do I portably code for MULE/XEmacs? | |
| Q1.3.7: How about Cyrillic Modes? | How about Cyrillic Modes? | |
| Getting Started: | ||
| 1.4: Getting Started, Backing up & Recovery | What is an `init.el' or `.emacs' and is there a sample one? | |
| Q1.4.2: Can I use the same `init.el'/`.emacs' with the other Emacs? | Can I use the same `init.el'/`.emacs' with the other Emacs? | |
| Q1.4.3: Any good tutorials around? | Any good XEmacs tutorials around? | |
| Q1.4.4: May I see an example of a useful XEmacs Lisp function? | May I see an example of a useful XEmacs Lisp function? | |
| Q1.4.5: And how do I bind it to a key? | And how do I bind it to a key? | |
| Q1.4.6: What's the difference between a macro and a function? | What's the difference between a macro and a function? | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
XEmacs is a powerful, highly customizable open source text editor and application development system, with full GUI support. It is protected under the GNU Public License and related to other versions of Emacs, in particular GNU Emacs. Its emphasis is on modern graphical user interface support and an open software development model, similar to Linux. XEmacs has an active development community numbering in the hundreds (and thousands of active beta testers on top of this), and runs on all versions of MS Windows, on Linux, and on nearly every other version of Unix in existence. Support for XEmacs has been supplied by Sun Microsystems, University of Illinois, Lucid, ETL/Electrotechnical Laboratory, Amdahl Corporation, BeOpen, and others, as well as the unpaid time of a great number of individual developers.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
XEmacs versions 21.1.* are releases made from the current stable sources. XEmacs versions 21.2.* are releases made from the development sources. Check at http://www.xemacs.org for the current minor version.
XEmacs 19.16 was the last release of v19, released in November, 1997, which was also the last version without international language support.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The canonical source and binaries can be found via anonymous FTP at:
ftp://ftp.xemacs.org/pub/xemacs/ |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
For a detailed description of the differences between GNU Emacs and XEmacs and a detailed history of XEmacs, check out the
NEWS file |
However, here is a list of some of the reasons why we think you might consider using it:
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There are currently irreconcilable differences in the views about technical, programming, design and organizational matters between RMS and the XEmacs development team which provide little hope for a merge to take place in the short-term future.
If you have a comment to add regarding the merge, it is a good idea to avoid posting to the newsgroups, because of the very heated flamewars that often result. Mail your questions to xemacs-beta@xemacs.org and bug-gnu-emacs@prep.ai.mit.edu.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Probably the easiest way, if everything is installed, is to use Info, by pressing C-h i, or looking for an Info item on the Help Menu. M-x apropos can be used to look for particular commands.
For items not found in the manual, try reading this FAQ and reading the Usenet group comp.emacs.xemacs.
If you choose to post to a newsgroup, please use comp.emacs.xemacs. Please do not post XEmacs related questions to gnu.emacs.help.
If you cannot post or read Usenet news, there is a corresponding mailing list which is available. It can be subscribed to by sending a message to xemacs-request@xemacs.org with `subscribe' in the body of the message. Send to the list at xemacs@xemacs.org. list. To cancel a subscription, you must use the xemacs-request address. Send a message with a subject of `unsubscribe' to be removed.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The archives can be found at http://list-archive.xemacs.org
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The most common pronounciation is `Eks eemax'.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Screen snapshots are available at http://www.xemacs.org/About/Screenshots/index.html as part of the XEmacs website.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes. XEmacs can be built under MS Windows and is fully-featured and actively developed. See 6 XEmacs on MS Windows.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes.
XEmacs 21.5 (perhaps 21.4 also?) works on MacOS X, although it certainly will not feel very much like a Mac application as it has no Mac-specific code in it.
There is also a port of XEmacs 19.14 that works on all recent versions of MacOS, from 8.1 through MacOS X, by Pitts Jarvis. It runs in an equivalent of TTY mode only (one single Macintosh window, 25 colors), but has a large number of Mac-specific additions. It's available at http://homepage.mac.com/pjarvis/xemacs.html.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Carl Edman, apparently no longer at cedman@princeton.edu, did the port of GNU Emacs to NeXTstep and expressed interest in doing the XEmacs port, but never went any farther.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
No, but Alexander Nikolaev <avn_1251@mail.ru> is working on it.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Pre-printed manuals are not available. If you are familiar with TeX, you can generate your own manual from the XEmacs sources.
HTML and Postscript versions of XEmacs manuals are available from the XEmacs web site at http://www.xemacs.org/Documentation/index.html.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The FAQ is actively maintained and modified regularly. All links should be up to date. Unfortunately, some of the information is out of date -- a situation which the FAQ maintainer is working on. All submissions are welcome, please e-mail submissions to XEmacs FAQ maintainers.
Please make sure that `XEmacs FAQ' appears on the Subject: line. If you think you have a better way of answering a question, or think a question should be included, we'd like to hear about it. Questions and answers included into the FAQ will be edited for spelling and grammar and will be attributed. Answers appearing without attribution are either from versions of the FAQ dated before May 1996 or are from previous FAQ maintainers. Answers quoted from Usenet news articles will always be attributed, regardless of the author.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Send an email message to xemacs-beta-request@xemacs.org with the line `subscribe' in the body of the message.
Be prepared to get your hands dirty, as beta testers are expected to identify problems as best they can.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Ben Wing ben@xemacs.org writes:
BTW if you have a wish list of things that you want added, you have to speak up about it! More specifically, you can do the following if you want a feature added (in increasing order of usefulness):
- Make a posting about a feature you want added.
- Become a beta tester and make more postings about those same features.
- Convince us that you're going to use the features in some cool and useful way.
- Come up with a clear and well-thought-out API concerning the features.
- Write the code to implement a feature and send us a patch.
(not that we're necessarily requiring you to write the code, but we can always hope :)
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
XEmacs is the result of the time and effort of many people. The developers responsible for recent releases are:
The developers responsible for older releases were:



Steve Baur was the primary maintainer for 19.15 through 21.0.
Chuck Thompson and Ben Wing were the maintainers for 19.11 through 19.14 and heavy code contributors for 19.8 through 19.10.
Jamie Zawinski was the maintainer for 19.0 through 19.10 (the entire history of Lucid Emacs). Richard Mlynarik was a heavy code contributor to 19.6 through 19.8.
Along with many other contributors, partially enumerated in the `About XEmacs' option in the Help menu.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The following people contributed valuable suggestions to building this version of the FAQ (listed in alphabetical order):
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This is only a partial list, as many names were lost in a hard disk crash some time ago.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Both the stable and development versions of XEmacs include internationalization support (aka MULE). MULE currently works on UNIX and Linux systems; work for supporting MULE on Windows operating systems is in progress. Binaries compiled without MULE support run faster than MULE capable XEmacsen.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If you would like to help, you may want to join the xemacs-mule@xemacs.org mailing list. Especially needed are people who speak/write languages other than English, who are willing to use XEmacs/MULE regularly, and have some experience with Elisp.
See section Q1.1.2: How do I become a Beta Tester?.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
See question 3.5.7 (see section Q3.5.7: How can you type in special characters in XEmacs?) in part 3 of this FAQ.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-catalog support has mostly been written but doesn't currently work. The first release of XEmacs 20 will not support it. However, menubar localization does work. To enable it, add to your `Emacs' file entries like this:
Emacs*XlwMenu.resourceLabels: True Emacs*XlwMenu.file.labelString: Fichier Emacs*XlwMenu.openInOtherWindow.labelString: In anderem Fenster oeffnen |
The name of the resource is derived from the non-localized entry by removing punctuation and capitalizing as above.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
MORIOKA Tomohiko writes:
Original Mule supports the following input methods: Wnn4, Wnn6, Canna, SJ3 and XIM. Interfaces for Wnn and SJ3 uses theegguser interface. Interface for Canna does not use `egg'. I don't know about XIM. It is to support ATOK, of course, it may work for another servers.Wnn supports Japanese, Chinese and Korean. It is made by OMRON and Kyôto university. It is a powerful and complex system. Wnn4 is free and Wnn6 is not free.
Canna supports only Japanese. It is made by NEC. It is a simple and powerful system. Canna uses only grammar (Wnn uses grammar and probability between words), so I think Wnn is cleverer than Canna, however Canna users made a good grammar and dictionary. So for standard modern Japanese, Canna seems cleverer than Wnn4. In addition, the UNIX version of Canna is free (now there is a Microsoft Windows version).
SJ3 supports only Japanese. It is made by Sony. XIM supports was made to use ATOK (a major input method in personal computer world). XIM is the standard for accessing input methods bundled in Japanese versions of Solaris. (XEmacs 20 will support XIM input).
Egg consists of following parts:
- Input character Translation System (ITS) layer. It translates ASCII inputs to Kana/PinYin/Hangul characters.
- Kana/PinYin/Hangul to Kanji transfer layer. It is interface layer for network Kana-Kanji server (Wnn and Sj3).
These input methods are modal, namely there are mode, alphabet mode and Kana-Kanji transfer mode. However there are mode-less input methods for Egg and Canna. `Boiled-egg' is a mode-less input method running on Egg. For Canna, `canna.el' has a tiny boiled-egg like command,
(canna-boil), and there are some boiled-egg like utilities. In addition, it was planned to make an abstraction for all transfer type input methods. However authors of input methods are busy, so maybe this plan is stopped. Perhaps after Mule merged GNU Emacs will be released, it will be continued.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
MORIOKA Tomohiko writes:
MULE and XEmacs are quite different. So the application implementor must write separate code for these mule variants.MULE and the next version of Emacs are similar but the symbols are very different--requiring separate code as well.
Namely we must support 3 kinds of mule variants and 4 or 5 or 6 kinds of emacs variants... (;_;) I'm shocked, so I wrote a wrapper package called
emuto provide a common interface.I have the following suggestions about dealing with mule variants:
(featurep 'mule)ton all mule variants
(boundp 'MULE)iston only MULE. Maybe the next version of Emacs will not have this symbol.
- MULE has a variable
mule-version. Perhaps the next version of Emacs will have this variable as well.Following is a sample to distinguish mule variants:
(if (featurep 'mule) (cond ((boundp 'MULE) ;; for original Mule ) ((string-match "XEmacs" emacs-version) ;; for XEmacs with Mule ) (t ;; for next version of Emacs )) ;; for old emacs variants )
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Ilya Zakharevich writes:
There is a cyrillic mode in the file `mysetup.zip' in ftp://ftp.math.ohio-state.edu/pub/users/ilya/emacs/. This is a modification to Valery Alexeev's `russian.el' which can be obtained from
http://ftpsearch.lycos.com/?query=russian.el.Z&form=medium.
Dima Barsky writes:
There is another cyrillic mode for both GNU Emacs and XEmacs by Dmitrii (Mitya) Manin at http://kulichki-lat.rambler.ru/centrolit/manin/cyr.el.
Rebecca Ore writes:
The fullest resource I found on Russian language use (in and out of XEmacs) is http://www.ibiblio.org/sergei/Software/Software.html
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The `init.el' or `.emacs' file is used to customize XEmacs to your tastes. Starting in 21.4, the preferred location for the init file is `~/.xemacs/init.el'; in previous versions, it was `~/.emacs'. 21.4 still accepts the old location, but the first time you run it, it will ask to migrate your file to the new location. If you answer yes, the file will be moved, and a "compatibility" `.emacs' file will be placed in the old location so that you can still run older versions of XEmacs, and versions of GNU Emacs, which expect the old location. The `.emacs' file present is just a stub that loads the real file in `~/.xemacs/init.el'.
No two init files are alike, nor are they expected to be alike, but that's the point. The XEmacs distribution contains an excellent starter example in the `etc/' directory called `sample.init.el' (starting in 21.4) or `sample.emacs' in older versions. Copy this file from there to `~/.xemacs/init.el' (starting in 21.4) or `~/.emacs' in older versions, where `~' means your home directory, of course. Then edit it to suit.
You may bring the `sample.init.el' or `sample.emacs' file into an XEmacs buffer from the menubar. (The menu entry for it is always under the `Help' menu, but its location under that has changed in various versions. Recently, look under the `Samples' submenu.) To determine the location of the `etc/' directory type the command C-h v data-directory RET.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes. The sample `init.el'/`.emacs' included in the XEmacs distribution will show you how to handle different versions and flavors of Emacs.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There's the XEmacs tutorial available from the Help Menu under `Basics->Tutorials', or by typing C-h t. To check whether it's available in a non-english language, type C-u C-h t TAB, type the first letters of your preferred language, then type RET.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The following function does a little bit of everything useful. It does something with the prefix argument, it examines the text around the cursor, and it's interactive so it may be bound to a key. It inserts copies of the current word the cursor is sitting on at the cursor. If you give it a prefix argument: C-u 3 M-x double-word then it will insert 3 copies.
(defun double-word (count)
"Insert a copy of the current word underneath the cursor"
(interactive "*p")
(let (here there string)
(save-excursion
(forward-word -1)
(setq here (point))
(forward-word 1)
(setq there (point))
(setq string (buffer-substring here there)))
(while (>= count 1)
(insert string)
(decf count))))
|
The best way to see what is going on here is to let XEmacs tell you.
Put the code into an XEmacs buffer, and do a C-h f with the cursor
sitting just to the right of the function you want explained. Eg. move
the cursor to the SPACE between interactive and `"*p"' and
hit C-h f to see what the function interactive does. Doing
this will tell you that the * requires a writable buffer, and
p converts the prefix argument to a number, and
interactive allows you to execute the command with M-x.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To bind to a key do:
(global-set-key "\C-cd" 'double-word) |
Or interactively, M-x global-set-key and follow the prompts.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Quoting from the Lisp Reference (a.k.a Lispref) Manual:
Macros enable you to define new control constructs and other language features. A macro is defined much like a function, but instead of telling how to compute a value, it tells how to compute another Lisp expression which will in turn compute the value. We call this expression the expansion of the macro.
Macros can do this because they operate on the unevaluated expressions for the arguments, not on the argument values as functions do. They can therefore construct an expansion containing these argument expressions or parts of them.
Do not confuse the two terms with keyboard macros, which are another matter, entirely. A keyboard macro is a key bound to several other keys. Refer to manual for details.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This is part 2 of the XEmacs Frequently Asked Questions list. This section is devoted to Installation, Maintenance and Trouble Shooting.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
How can I just try XEmacs without installing it?
XEmacs will run in place without requiring installation and copying of the Lisp directories, and without having to specify a special build-time flag. It's the copying of the Lisp directories that requires so much space. XEmacs is largely written in Lisp.
A good method is to make a shell alias for xemacs:
alias xemacs=/i/xemacs-20.2/src/xemacs |
(You will obviously use whatever directory you downloaded the source tree to instead of `/i/xemacs-20.2').
This will let you run XEmacs without massive copying.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The space required by the installation directories can be reduced dramatically if desired. Gzip all the .el files. Remove all the packages you'll never want to use. Remove the TexInfo manuals. Remove the Info (and use just hardcopy versions of the manual). Remove most of the stuff in etc. Remove or gzip all the source code. Gzip or remove the C source code. Configure it so that copies are not made of the support lisp.
These are all Emacs Lisp source code and bytecompiled object code. You may safely gzip everything named *.el here. You may remove any package you don't use. Nothing bad will happen if you delete a package that you do not use. You must be sure you do not use it though, so be conservative at first.
Possible candidates for deletion include w3, games, hyperbole, mh-e, hm-html-menus, vm, viper, oobr, gnus, etc. Ask yourself, Do I ever want to use this package? If the answer is no, then it is a candidate for removal.
First, gzip all the .el files. Then go about package by package and start gzipping the .elc files. Then run XEmacs and do whatever it is you normally do. If nothing bad happens, then delete the directory. Be conservative about deleting directories, and it would be handy to have a backup around in case you get too zealous.
`prim', `modes', `packages', and `utils' are four directories you definitely do not want to delete, although certain packages can be removed from them if you do not use them.
Online texinfo sources in the `info' can either be compressed them or remove them. In either case, C-h i (info mode) will no longer work.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
What is the best way to compile XEmacs with the netaudio system, since I have got the netaudio system compiled but installed at a weird place, I am not root. Also in the READMEs it does not say anything about compiling with the audioserver?
You should only need to add some stuff to the configure command line. To tell it to compile in netaudio support: `--with-sound=both', or `--with-sound=nas' if you don't want native sound support for some reason.) To tell it where to find the netaudio includes and libraries:
--site-libraries=WHATEVER --site-includes=WHATEVER |
Then (fingers crossed) it should compile and it will use netaudio if you have a server running corresponding to the X server. The netaudio server has to be there when XEmacs starts. If the netaudio server goes away and another is run, XEmacs should cope (fingers crossed, error handling in netaudio isn't perfect).
BTW, netaudio has been renamed as it has a name clash with something else, so if you see references to NAS or Network Audio System, it's the same thing. It also might be found at ftp://ftp.x.org/contrib/audio/nas/.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
On Linux 1.3.98 with termcap 2.0.8 and the ncurses that came with libc 5.2.18, XEmacs 20.0b20 is unable to open a tty device:
src/xemacs -nw -q Initialization error: Terminal type `xterm' undefined (or can't access database?) |
Ben Wing writes:
Your ncurses configuration is messed up. Your /usr/lib/terminfo is a bad pointer, perhaps to a CD-ROM that is not inserted.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
No. The name XEmacs is unfortunate in the sense that it is not an X Window System-only version of Emacs. XEmacs has full color support on a color-capable character terminal.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There have been a variety of reports of crashes due to compilers with buggy optimizers. Please see the `PROBLEMS' file that comes with XEmacs to read what it says about your platform.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I have x-faces, jpeg, xpm etc. all in different places. I've tried space-separated, comma-separated, several --site-libraries, all to no avail.
--site-libraries='/path/one /path/two /path/etc' |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You are using the Linux/ELF distribution of XEmacs 19.14, and your ELF libraries are out of date. You have the following options:
Hrvoje Niksic writes:
Why not use a Perl one-liner for No. 2?
perl -pi -e 's/_h_errno\0/h_errno\0\0/g' \ /usr/local/bin/xemacs-19.14NB: You must patch `/usr/local/bin/xemacs-19.14', and not `xemacs' because `xemacs' is a link to `xemacs-19.14'; the Perl `-i' option will cause unwanted side-effects if applied to a symbolic link.
SL Baur writes:
If you build against a recent libc-5.4 (late enough to have caused problems earlier in the beta cycle) and then run with an earlier version of libc, you get a
$ xemacs xemacs: can't resolve symbol '__malloc_hook' zsh: 7942 segmentation fault (core dumped) xemacs(Example binary compiled against libc-5.4.23 and run with libc-5.4.16).
The solution is to upgrade to at least libc-5.4.23. Sigh. Drat.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
All external libraries used by XEmacs can be found at the XEmacs FTP site ftp://ftp.xemacs.org/pub/xemacs/aux/.
The canonical locations (at the time of this writing) are as follows:
ftp://swrinde.nde.swri.edu/pub/png/src/
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Not necessarily. If you have GNU sed 3.0 you should downgrade it to 2.05. From the `README' at prep.ai.mit.edu:
sed 3.0 has been withdrawn from distribution. It has major revisions, which mostly seem to be improvements; but it turns out to have bugs too which cause trouble in some common cases.Tom Lord won't be able to work fixing the bugs until May. So in the mean time, we've decided to withdraw sed 3.0 from distribution and make version 2.05 once again the recommended version.
It has also been observed that the vfork test on Solaris will leave a core dump.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This is the result of a long-standing problem with SunOS and the fact that stock SunOS systems do not ship with DNS resolver code in libc.
Christopher Davis writes:
That's correct [The SunOS 4.1.3 precompiled binaries don't do name lookup]. Since Sun figured that everyone used NIS to do name lookups (that DNS thing was apparently only a passing fad, right?), the stock SunOS 4.x systems don't have DNS-based name lookups in libc.This is also why Netscape ships two binaries for SunOS 4.1.x.
The best solution is to compile it yourself; the configure script will check to see if you've put DNS in the shared libc and will then proceed to link against the DNS resolver library code.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Richard Cognot writes:
Because of the way XEmacs (and every other Emacsen, AFAIK) is built. The link gives you a bare-boned emacs (called temacs). temacs is then run, preloading some of the lisp files. The result is then dumped into a new executable, named xemacs, which will contain all of the preloaded lisp functions and data.Now, during the dump itself, the executable (code+data+symbols) is written on disk using a special unexec() function. This function is obviously heavily system dependent. And on some systems, it leads to an executable which, although valid, cannot be stripped without damage. If memory serves, this is especially the case for AIX binaries. On other architectures it might work OK.
The Right Way to strip the emacs binary is to strip temacs prior to dumping xemacs. This will always work, although you can do that only if you install from sources (as temacs is `not' part of the binary kits).
Nat Makarevitch writes:
Here is the trick:
- [ ./configure; make ]
- rm src/xemacs
- strip src/temacs
- make
- cp src/xemacs /usr/local/bin/xemacs
- cp lib-src/DOC-19.16-XEmacs /usr/local/lib/xemacs-19.16/i586-unknown-linuxaout
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Strictly speaking, no. XEmacs will build and install just fine without any packages installed. However, only the most basic editing functions will be available with no packages installed, so installing packages is an essential part of making your installed XEmacs _useful_.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Many people really liked the old way that packages were bundled and do not want to mess with packages at all. You can grab all the packages at once like you used to with old XEmacs versions. Download the file
`xemacs-sumo.tar.gz'
For an XEmacs compiled with Mule you also need
`xemacs-mule-sumo.tar.gz'
from the `packages' directory on your XEmacs mirror archive. N.B. They are called 'Sumo Tarballs' for good reason. They are currently about 15MB and 2.3MB (gzipped) respectively.
Install them by
cd $prefix/lib/xemacs ; gunzip -c <tarballname> | tar xf -
See README.packages for more detailed installation instructions.
As the Sumo tarballs are not regenerated as often as the individual packages, it is recommended that you use the automatic package tools afterwards to pick up any recent updates.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
First of all, don't panic. Whenever XEmacs crashes, it tries extremely
hard to auto-save all of your files before dying. (The main time that
this will not happen is if the machine physically lost power or if you
killed the XEmacs process using kill -9). The next time you try
to edit those files, you will be informed that a more recent auto-save
file exists. You can use M-x recover-file to retrieve the
auto-saved version of the file.
You can use the command M-x recover-session after a crash to pick up where you left off.
Now, XEmacs is not perfect, and there may occasionally be times, or particular sequences of actions, that cause it to crash. If you can come up with a reproducible way of doing this (or even if you have a pretty good memory of exactly what you were doing at the time), the maintainers would be very interested in knowing about it. Post a message to comp.emacs.xemacs or send mail to crashes@xemacs.org. Please note that the `crashes' address is exclusively for crash reports.
If at all possible, include a stack backtrace of the core dump that was produced. This shows where exactly things went wrong, and makes it much easier to diagnose problems. To do this, you need to locate the core file (it's called `core', and is usually sitting in the directory that you started XEmacs from, or your home directory if that other directory was not writable). Then, go to that directory and execute a command like:
gdb `which xemacs` core |
and then issue the command `where' to get the stack backtrace. You
might have to use dbx or some similar debugger in place of
gdb. If you don't have any such debugger available, complain to
your system administrator.
It's possible that a core file didn't get produced, in which case you're out of luck. Go complain to your system administrator and tell him not to disable core files by default. Also see Q2.1.15: How to Debug an XEmacs problem with a debugger, for tips and techniques for dealing with a debugger.
When making a problem report make sure that:
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When I try to use some particular option of some particular package, I get a cryptic error in the minibuffer.
If you can't figure out what's going on, select Options/General Options/Debug on Error from the Menubar and then try and make the error happen again. This will give you a backtrace that may be enlightening. If not, try reading through this FAQ; if that fails, you could try posting to comp.emacs.xemacs (making sure to include the backtrace) and someone may be able to help. If you can identify which Emacs lisp source file the error is coming from you can get a more detailed stack backtrace by doing the following:
Depending on the version of XEmacs, you may either select View->Show Message Log (recent versions), Edit->Show Messages (some earlier versions) or Help->Recent Keystrokes/Messages (other earlier versions) from the menubar to see the most recent messages. This command is bound to C-h l by default.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I get tons of translation table syntax error messages during startup. How do I get rid of them?
There are two causes of this problem. The first usually only strikes people using the prebuilt binaries. The culprit in both cases is the file `XKeysymDB'.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
How can I avoid the startup warnings about deducing proper fonts?
This is highly dependent on your installation, but try with the following font as your base font for XEmacs and see what it does:
-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1 |
More precisely, do the following in your resource file:
Emacs.default.attributeFont: \ -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1 |
If you just don't want to see the `*Warnings*' buffer at startup time, you can set this:
(setq display-warning-minimum-level 'error) |
The buffer still exists; it just isn't in your face.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Help! I can not get XEmacs to display on my Envizex X-terminal!
Try setting the DISPLAY variable using the numeric IP address of the host you are running XEmacs from.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There have been several reports of the X server locking up under Linux.
In all reported cases removing speedo and scaled fonts from the font
path corrected the problem. This can be done with the command
xset.
It is possible that using a font server may also solve the problem.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
How can I make XEmacs recognize the Alt key of my HP workstation as a Meta key?
Put the following line into a file and load it with xmodmap(1) before starting XEmacs:
remove Mod1 = Mode_switch |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Natalie Kershaw writes:
I am trying to run xemacs 19.13 under X11R4. Whenever I move the mouse I get the following error. Has anyone seen anything like this? This doesn't occur on X11R5.
Signalling: (error "got (wrong-type-argument color-instance-p nil) and I don't know why!")
dinos writes:
I think this is due to undefined resources; You need to define color backgrounds and foregrounds into your `.../app-defaults/Emacs' like:
*Foreground: Black ;everything will be of black on grey95, *Background: Grey95 ;unless otherwise specified. *cursorColor: Red3 ;red3 cursor with grey95 border. *pointerColor: Red3 ;red3 pointer with grey95 border.
Natalie Kershaw adds:
What fixed the problem was adding some more colors to the X color database (copying the X11R5 colors over), and also defining the following resources:
xemacs*cursorColor: black xemacs*pointerColor: blackWith the new colors installed the problem still occurs if the above resources are not defined.
If the new colors are not present then an additional error occurs on XEmacs startup, which says `Color Red3' not defined.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The OpenWindows 3.0 server is incredibly buggy. Your best bet is to replace it with one from the generic MIT X11 release. You might also try disabling parts of your `init.el'/`.emacs', like those that enable background pixmaps.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The following information comes from the `PROBLEMS' file that comes with XEmacs.
If you're having troubles with HP/UX it is because HP/UX defines the modifiers wrong in X. Here is a shell script to fix the problem; be sure that it is run after VUE configures the X server.
#! /bin/sh xmodmap 2> /dev/null - << EOF keysym Alt_L = Meta_L keysym Alt_R = Meta_R EOF xmodmap - << EOF clear mod1 keysym Mode_switch = NoSymbol add mod1 = Meta_L keysym Meta_R = Mode_switch add mod2 = Mode_switch EOF |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Dr. Ram Samudrala writes:
I just installed the XEmacs (20.4-2) RPMS that I downloaded from http://www.xemacs.org/. Everything works fine, except that when I place my mouse over the toolbar, it beeps and gives me this message:
Can't instantiate image (probably cached): [xbm :mask-file "/usr/include/X11/bitmaps/leftptrmsk :mask-data (16 16 <strange control characters> ... |
Kyle Jones writes:
This is problem specific to some Chips and Technologies video chips, when running XFree86. Putting
Option "sw_cursor"in `XF86Config' gets rid of the problem.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I have xemacs 19.13 running on an alpha running OSF1 V3.2 148 and ispell would not run because it claimed the version number was incorrect although it was indeed OK. I traced the problem to the regular expression handler.
Douglas Kosovic writes:
Actually it's a DEC cc optimization bug that screws up the regexp handling in XEmacs.Rebuilding using the `-migrate' switch for DEC cc (which uses a different sort of optimization) works fine.
See `xemacs-19_13-dunix-3_2c.patch' at the following URL on how to build with the `-migrate' flag:
http://www-digital.cern.ch/carney/emacs/emacs.html |
NOTE: There have been a variety of other problems reported that are fixed in this fashion.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
create_process failure. Dave Carrigan writes:
With XEmacs 19.13 and HP/UX 10.10, anything that relies on the
create_process function fails. This breaks a lot of things
(shell-mode, compile, ange-ftp, to name a few).
Phil Johnson writes:
This is a problem specific to HP-UX 10.10. It only occurs when XEmacs is compiled for shared libraries (the default), so you can work around it by compiling a statically-linked binary (run configure with `--dynamic=no').I'm not sure whether the problem is with a particular shared library or if it's a kernel problem which crept into 10.10.
Richard Cognot writes:
I had a few problems with 10.10. Apparently, some of them were solved by forcing a static link of libc (manually).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Ben Wing writes:
C-g does work for most people in most circumstances. If it doesn't, there are only two explanations:
- The code is wrapped with a binding of
inhibit-quittot. Ctrl-Shift-G should still work, I think.
- SIGIO is broken on your system, but BROKEN_SIGIO isn't defined.
To test #2, try executing
(while t)from the `*scratch*' buffer. If C-g doesn't interrupt, then you're seeing #2.
Morten Welinder writes:
On some (but not all) machines a hung XEmacs can be revived by
kill -FPE <pid>. This is a hack, of course, not a solution.
This technique works on a Sun4 running 4.1.3_U1. To see if it works for
you, start another XEmacs and test with that first. If you get a core
dump the method doesn't work and if you get `Arithmetic error' then
it does.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If XEmacs does crash on you, one of the most productive things you can do to help get the bug fixed is to poke around a bit with the debugger. Here are some hints:
attach
command or something similar), here are some things you can do:
assert_failed().
signal_1()---this is
declared static in eval.c.
x_error_handler(); that will tell you which call is causing them.
Lisp_Object. These are exactly what they appear to be,
i.e. references to Lisp objects. Printing them out with the debugger
probably won't be too useful--you'll likely just see a number. To
decode them, do this:
call debug_print (OBJECT) |
where OBJECT is whatever you want to decode (it can be a variable, a function call, etc.). This will print out a readable representation on the TTY from which the xemacs process was invoked.
call debug_backtrace () |
debug_print and debug_backtrace has two
disadvantages - it can only be used with a running xemacs process, and
it cannot display the internal C structure of a Lisp Object. Even if
all you've got is a core dump, all is not lost.
If you're using GDB, there are some macros in the file `src/.gdbinit' in the XEmacs source distribution that should make it easier for you to decode Lisp objects. This file is automatically read by gdb if gdb is run in the directory where xemacs was built, and contains these useful macros to inspect the state of xemacs:
pobj
xtype
lbt
ldp
run-temacs
dump-temacs
check-xemacs
check-temacs
If you are using Sun's `dbx' debugger, there is an equivalent file `src/.dbxrc', which defines the same commands for dbx.
Curtiss suggests upgrading to ld.so version 1.8 if dynamic linking and debugging is a problem on Linux.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
strcat on HP/UX 10 From the problems database (through the former address http://support.mayfield.hp.com/):
Problem Report: 5003302299 Status: Open System/Model: 9000/700 Product Name: HPUX S800 10.0X Product Vers: 9245XB.10.00 Description: strcat(3C) may read beyond end of source string, can cause SIGSEGV *** PROBLEM TEXT *** strcat(3C) may read beyond the source string onto an unmapped page, causing a segmentation violation. |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
As with other errors, set debug-on-error to t to get the
backtrace when the error occurs. Specifically, two problems have been
reported (and fixed).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If this is happening, we would very much like to know what's causing them. To find this out, see Q2.1.15: How to Debug an XEmacs problem with a debugger. Try to get both a C and Lisp backtrace, and send them to xemacs-beta@xemacs.org.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When using one of the prebuilt binaries many users have observed that XEmacs uses the timezone under which it was built, but not the timezone under which it is running. The solution is to add:
(set-time-zone-rule "MET") |
to your `init.el'/`.emacs' or the `site-start.el' file if
you can. Replace MET with your local timezone.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This is a problem with a partially loaded hyperbole. Try adding:
(require 'hmouse-drv) |
where you load hyperbole and the problem should go away.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
David Moore writes:
Two things you can do:1) C level:
When you see it going mad like this, you might want to use gdb from an 'xterm' to attach to the running process and get a stack trace. To do this just run:
gdb /path/to/xemacs/xemacs ####Where
####is the process id of your xemacs, instead of specifying the core. When gdb attaches, the xemacs will stop [1] and you can type `where' in gdb to get a stack trace as usual. To get things moving again, you can just type `quit' in gdb. It'll tell you the program is running and ask if you want to quit anyways. Say 'y' and it'll quit and have your emacs continue from where it was at.2) Lisp level:
Turn on debug-on-quit early on. When you think things are going slow hit C-g and it may pop you in the debugger so you can see what routine is running. Press `c' to get going again.
debug-on-quit doesn't work if something's turned on inhibit-quit or in some other strange cases.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Movemail used to work fine in 19.14 but has stopped working in 19.15 and 20.x. I am using Linux.
SL Baur writes:
Movemail on Linux used to default to using flock file locking. With 19.15 and later versions it now defaults to using.lockfile locking. If this is not appropriate for your system, edit src/s/linux.h and uncomment the line that reads:
#define MAIL_USE_FLOCK
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If XEmacs starts when you're on the network, but fails when you're not on the network, you may be missing a "localhost" entry in your `/etc/hosts' file. The file should contain an entry like:
127.0.0.1 localhost |
Add that line, and XEmacs will be happy.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You have been used to doing `foo', but now when you invoke it (or click the toolbar button or select the menu item), nothing (or an error) happens. The simplest explanation is that you are missing a package that is essential to you. You can either track it down and install it (there is a list of packages and brief descriptions of their contents in `etc/PACKAGES'), or install the `Sumo Tarball' (see section Q2.0.12: How do I figure out which packages to install? (NEW)).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This is part 3 of the XEmacs Frequently Asked Questions list. This section is devoted to Customization and screen settings.
| Customization--Emacs Lisp and `init.el'/`.emacs': | ||
|---|---|---|
| 3.0: Customization -- Emacs Lisp and `init.el'/`.emacs' | What version of Emacs am I running? | |
| Q3.0.2: How can I evaluate Emacs-Lisp expressions? | How do I evaluate Elisp expressions? | |
Q3.0.3: (setq tab-width 6) behaves oddly. | (setq tab-width 6) behaves oddly. | |
Q3.0.4: How can I add directories to the load-path? | How can I add directories to the load-path? | |
| Q3.0.5: How to check if a lisp function is defined? | How to check if a lisp function is defined? | |
Q3.0.6: Can I force the output of (face-list) to a buffer? | Can I force the output of (face-list) to a buffer? | |
Q3.0.7: Font selections in don't get saved after Save Options. | Font selections don't get saved after Save Options. | |
| Q3.0.8: How do I get a single minibuffer frame? | How do I make a single minibuffer frame? | |
Q3.0.9: What is Customize? | What is Customize? | |
| X Window System & Resources: | ||
| 3.1: X Window System & Resources | Where is a list of X resources? | |
| Q3.1.2: How can I detect a color display? | How can I detect a color display? | |
| Q3.1.3: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q3.1.4: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q3.1.5: How can I get the icon to just say `XEmacs'? | How can I get the icon to just say `XEmacs'? | |
| Q3.1.6: How can I have the window title area display the full path? | How can I have the window title area display the full path? | |
| Q3.1.7: `xemacs -name junk' doesn't work? | `xemacs -name junk' doesn't work? | |
| Q3.1.8: `-iconic' doesn't work. | `-iconic' doesn't work. | |
| Textual Fonts & Colors: | ||
| 3.2: Textual Fonts & Colors | How can I set color options from `init.el'/`.emacs'? | |
| Q3.2.2: How do I set the text, menu and modeline fonts? | How do I set the text, menu and modeline fonts? | |
| Q3.2.3: How can I set the colors when highlighting a region? | How can I set the colors when highlighting a region? | |
| Q3.2.4: How can I limit color map usage? | How can I limit color map usage? | |
| Q3.2.5: My tty supports color, but XEmacs doesn't use them. | My tty supports color, but XEmacs doesn't use them. | |
| Q3.2.6: Can I have pixmap backgrounds in XEmacs? | Can I have pixmap backgrounds in XEmacs? | |
| The Modeline: | ||
| 3.3: The Modeline | How can I make the modeline go away? | |
| Q3.3.2: How do you have XEmacs display the line number in the modeline? | How do you have XEmacs display the line number in the modeline? | |
| Q3.3.3: How do I get XEmacs to put the time of day on the modeline? | How do I get XEmacs to put the time of day on the modeline? | |
| Q3.3.4: How do I turn off current chapter from AUC TeX modeline? | How do I turn off current chapter from AUC TeX modeline? | |
| Q3.3.5: How can one change the modeline color based on the mode used? | How can one change the modeline color based on the mode used? | |
| 3.4 Multiple Device Support: | ||
| 3.4: Multiple Device Support | How do I open a frame on another screen of my multi-headed display? | |
| Q3.4.2: Can I really connect to a running XEmacs after calling up over a modem? How? | Can I really connect to a running XEmacs after calling up over a modem? How? | |
| 3.5 The Keyboard: | ||
| 3.5: The Keyboard | How can I bind complex functions (or macros) to keys? | |
| Q3.5.2: How can I stop down-arrow from adding empty lines to the bottom of my buffers? | How can I stop down-arrow from adding empty lines to the bottom of my buffers? | |
| Q3.5.3: How do I bind C-. and C-; to scroll one line up and down? | How do I bind C-. and C-; to scroll one line up and down? | |
| Q3.5.4: Globally binding Delete? | Globally binding Delete? | |
| Q3.5.5: Scrolling one line at a time. | Scrolling one line at a time. | |
| Q3.5.6: How to map Help key alone on Sun type4 keyboard? | How to map Help key alone on Sun type4 keyboard? | |
| Q3.5.7: How can you type in special characters in XEmacs? | How can you type in special characters in XEmacs? | |
| Q3.5.8: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q3.5.9: How do I make the Delete key delete forward? | How do I make the Delete key delete forward? | |
| Q3.5.10: Can I turn on sticky modifier keys? | Can I turn on sticky modifier keys? | |
| Q3.5.11: How do I map the arrow keys? | How do I map the arrow keys? | |
| The Cursor: | ||
| 3.6: The Cursor | Is there a way to make the bar cursor thicker? | |
| Q3.6.2: Is there a way to get back the block cursor? | Is there a way to get back the old block cursor where the cursor covers the character in front of the point? | |
| Q3.6.3: Can I make the cursor blink? | Can I make the cursor blink? | |
| The Mouse and Highlighting: | ||
| 3.7: The Mouse and Highlighting | How can I turn off Mouse pasting? | |
| Q3.7.2: How do I set control/meta/etc modifiers on mouse buttons? | How do I set control/meta/etc modifiers on mouse buttons? | |
| Q3.7.3: Clicking the left button does not do anything in buffer list. | Clicking the left button does not do anything in buffer list. | |
| Q3.7.4: How can I get a list of buffers when I hit mouse button 3? | How can I get a list of buffers when I hit mouse button 3? | |
| Q3.7.5: Why does cut-and-paste not work between XEmacs and a cmdtool? | Why does cut-and-paste not work between XEmacs and a cmdtool? | |
| Q3.7.6: How I can set XEmacs up so that it pastes where the text cursor is? | How I can set XEmacs up so that it pastes where the text cursor is? | |
| Q3.7.7: How do I select a rectangular region? | How do I select a rectangular region? | |
| Q3.7.8: Why does M-w take so long? | Why does M-w take so long? | |
| The Menubar and Toolbar: | ||
| 3.8: The Menubar and Toolbar | How do I get rid of the menu (or menubar)? | |
| Q3.8.2: Can I customize the basic menubar? | Can I customize the basic menubar? | |
Q3.8.3: How do I control how many buffers are listed in the menu Buffers List? | How do I control how many buffers are listed in the menu Buffers list? | |
Q3.8.4: Resources like Emacs*menubar*font are not working? | Resources like Emacs*menubar*font are not working? | |
| Q3.8.5: How can I bind a key to a function to toggle the toolbar? | How can I bind a key to a function to toggle the toolbar? | |
| Scrollbars: | ||
| 3.9: Scrollbars | How can I disable the scrollbar? | |
| Q3.9.2: How can one use resources to change scrollbar colors? | How can one use resources to change scrollbar colors? | |
| Q3.9.3: Moving the scrollbar can move the point; can I disable this? | Moving the scrollbar can move the point; can I disable this? | |
| Q3.9.4: How can I turn off automatic horizontal scrolling in specific modes? | How can I turn off automatic horizontal scrolling in specific modes? | |
| Text Selections: | ||
| 3.10: Text Selections | How can I turn off or change highlighted selections? | |
| Q3.10.2: How do I get that typing on an active region removes it? | How do I get that typing on an active region removes it? | |
| Q3.10.3: Can I turn off the highlight during isearch? | Can I turn off the highlight during isearch? | |
| Q3.10.4: How do I turn off highlighting after C-x C-p (mark-page)? | How do I turn off highlighting after C-x C-p (mark-page)? | |
| Q3.10.5: The region disappears when I hit the end of buffer while scrolling. | The region disappears when I hit the end of buffer while scrolling. | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
How can `init.el'/`.emacs' determine which of the family of Emacsen I am using?
To determine if you are currently running GNU Emacs 18, GNU Emacs 19, XEmacs 19, XEmacs 20, or Epoch, and use appropriate code, check out the example given in `etc/sample.init.el' (`etc/sample.emacs' in XEmacs versions prior to 21.4). There are other nifty things in there as well!
For all new code, all you really need to do is:
(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version)) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I know I can evaluate Elisp expressions from *scratch* buffer
with C-j after the expression. How do I do it from another
buffer?
Press M-: (the default binding of eval-expression), and
enter the expression to the minibuffer.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
(setq tab-width 6) behaves oddly.
If you put (setq tab-width 6) in your
`init.el'/`.emacs' file it does not work! Is there a reason
for this? If you do it at the EVAL prompt it works fine!! How strange.
Use setq-default instead, since tab-width is
all-buffer-local.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
load-path? Here are two ways to do that, one that puts your directories at the front of the load-path, the other at the end:
;;; Add things at the beginning of the load-path, do not add
;;; duplicate directories:
(pushnew "bar" load-path :test 'equal)
(pushnew "foo" load-path :test 'equal)
;;; Add things at the end, unconditionally
(setq load-path (nconc load-path '("foo" "bar")))
|
keith (k.p.) hanlan writes:
To add directories using Unix shell metacharacters use `expand-file-name' like this:
(push (expand-file-name "~keithh/.emacsdir") load-path)
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Use the following elisp:
(fboundp 'foo) |
It's almost always a mistake to test emacs-version or any similar
variables.
Instead, use feature-tests, such as featurep, boundp,
fboundp, or even simple behavioral tests, eg.:
(defvar foo-old-losing-code-p
(condition-case nil (progn (losing-code t) nil)
(wrong-number-of-arguments t)))
|
There is an incredible amount of broken code out there which could work much better more often in more places if it did the above instead of trying to divine its environment from the value of one variable.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
(face-list) to a buffer?
It would be good having it in a buffer, as the output of
(face-list) is too wide to fit to a minibuffer.
Evaluate the expression in the `*scratch*' buffer with point after the rightmost paren and typing C-j.
If the minibuffer smallness is the only problem you encounter, you can simply press C-h l to get the former minibuffer contents in a buffer.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Save Options. John Mann writes:
You have to go to Options->Frame Appearance and unselect `Frame-Local Font Menu'. If this option is selected, font changes are only applied to the current frame and do not get saved when you save options.
Also, set the following in your `init.el'/`.emacs':
(setq options-save-faces t) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Vin Shelton writes:
(setq initial-frame-plist '(minibuffer nil))
(setq default-frame-plist '(minibuffer nil))
(setq default-minibuffer-frame
(make-frame
'(minibuffer only
width 86
height 1
menubar-visible-p nil
default-toolbar-visible-p nil
name "minibuffer"
top -2
left -2
has-modeline-p nil)))
(frame-notice-user-settings)
|
Please note: The single minibuffer frame may not be to everyone's taste, and there any number of other XEmacs options settings that may make it difficult or inconvenient to use.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Customize? Starting with XEmacs 20.2 there is new system 'Customize' for customizing XEmacs options.
You can access Customize from the Options menu
or invoking one of customize commands by typing eg.
M-x customize, M-x customize-face,
M-x customize-variable or M-x customize-apropos.
Starting with XEmacs 20.3 there is also new `browser' mode for Customize. Try it out with M-x customize-browse
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Search through the `NEWS' file for `X Resources'. A fairly comprehensive list is given after it.
In addition, an `app-defaults' file is supplied, `etc/Emacs.ad' listing the defaults. The file `etc/sample.Xdefaults' gives a set of defaults that you might consider. It is essentially the same as `etc/Emacs.ad' but some entries are slightly altered. Be careful about installing the contents of this file into your `.Xdefaults' or `.Xresources' file if you use GNU Emacs under X11 as well.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You can test the return value of the function (device-class), as
in:
(when (eq (device-class) 'color) (set-face-foreground 'font-lock-comment-face "Grey") (set-face-foreground 'font-lock-string-face "Red") .... ) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I'd like the icon to just say `XEmacs', and not include the name of the current file in it.
Add the following line to your `init.el'/`.emacs':
(setq frame-icon-title-format "XEmacs") |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I'd like to have the window title area display the full directory/name of the current buffer file and not just the name.
Add the following line to your `init.el'/`.emacs':
(setq frame-title-format "%S: %f") |
A more sophisticated title might be:
(setq frame-title-format
'("%S: " (buffer-file-name "%f"
(dired-directory dired-directory "%b"))))
|
That is, use the file name, or the dired-directory, or the buffer name.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When I run `xterm -name junk', I get an xterm whose class name according to xprop, is `junk'. This is the way it's supposed to work, I think. When I run `xemacs -name junk' the class name is not set to `junk'. It's still `emacs'. What does `xemacs -name' really do? The reason I ask is that my window manager (fvwm) will make a window sticky and I use XEmacs to read my mail. I want that XEmacs window to be sticky, without having to use the window manager's function to set the window sticky. What gives?
`xemacs -name' sets the application name for the program (that is,
the thing which normally comes from `argv[0]'). Using `-name'
is the same as making a copy of the executable with that new name. The
WM_CLASS property on each frame is set to the frame-name, and the
application-class. So, if you did `xemacs -name FOO' and then
created a frame named BAR, you'd get an X window with WM_CLASS =
( "BAR", "Emacs"). However, the resource hierarchy for this
widget would be:
Name: FOO .shell .container .BAR Class: Emacs .TopLevelEmacsShell.EmacsManager.EmacsFrame |
instead of the default
Name: xemacs.shell .container .emacs Class: Emacs .TopLevelEmacsShell.EmacsManager.EmacsFrame |
It is arguable that the first element of WM_CLASS should be set to the application-name instead of the frame-name, but I think that's less flexible, since it does not give you the ability to have multiple frames with different WM_CLASS properties. Another possibility would be for the default frame name to come from the application name instead of simply being `emacs'. However, at this point, making that change would be troublesome: it would mean that many users would have to make yet another change to their resource files (since the default frame name would suddenly change from `emacs' to `xemacs', or whatever the executable happened to be named), so we'd rather avoid it.
To make a frame with a particular name use:
(make-frame '((name . "the-name"))) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When I start up XEmacs using `-iconic' it doesn't work right.
Using `-unmapped' on the command line, and setting the
initiallyUnmapped X Resource don't seem to help much either...
Ben Wing writes:
Ugh, this stuff is such an incredible mess that I've about given up getting it to work. The principal problem is numerous window-manager bugs...
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
How can I set the most commonly used color options from my `init.el'/`.emacs' instead of from my `.Xdefaults'?
Like this:
(set-face-background 'default "bisque") ; frame background
(set-face-foreground 'default "black") ; normal text
(set-face-background 'zmacs-region "red") ; When selecting w/
; mouse
(set-face-foreground 'zmacs-region "yellow")
(set-face-font 'default "*courier-bold-r*120-100-100*")
(set-face-background 'highlight "blue") ; Ie when selecting
; buffers
(set-face-foreground 'highlight "yellow")
(set-face-background 'modeline "blue") ; Line at bottom
; of buffer
(set-face-foreground 'modeline "white")
(set-face-font 'modeline "*bold-r-normal*140-100-100*")
(set-face-background 'isearch "yellow") ; When highlighting
; while searching
(set-face-foreground 'isearch "red")
(setq x-pointer-foreground-color "black") ; Adds to bg color,
; so keep black
(setq x-pointer-background-color "blue") ; This is color
; you really
; want ptr/crsr
|
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Note that you should use `Emacs.' and not `Emacs*' when setting face values.
In `.Xdefaults':
Emacs.default.attributeFont: -*-*-medium-r-*-*-*-120-*-*-m-*-*-* Emacs*menubar*font: fixed Emacs.modeline.attributeFont: fixed |
This is confusing because modeline is a face, and can be found listed
with all faces in the current mode by using M-x set-face-font
(enter) ?. It uses the face specification of attributeFont,
while menubar is a normal X thing that uses the specification
font. With Motif it may be necessary to use fontList
instead of font.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
How can I set the background/foreground colors when highlighting a region?
You can change the face zmacs-region either in your
`.Xdefaults':
Emacs.zmacs-region.attributeForeground: firebrick Emacs.zmacs-region.attributeBackground: lightseagreen |
or in your `init.el'/`.emacs':
(set-face-background 'zmacs-region "red") (set-face-foreground 'zmacs-region "yellow") |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I'm using Netscape (or another color grabber like XEmacs); is there any way to limit the number of available colors in the color map?
Answer: No, but you can start Netscape before XEmacs, and it will use the closest available color if the colormap is full. You can also limit the number of colors Netscape uses, using the flags -mono, -ncols <#> or -install (for mono, limiting to <#> colors, or for using a private color map).
If you have the money, another solution would be to use a truecolor or direct color video.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
XEmacs tries to automatically determine whether your tty supports color, but sometimes guesses wrong. In that case, you can make XEmacs Do The Right Thing using this Lisp code:
(if (eq 'tty (device-type))
(set-device-class nil 'color))
|
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There are several ways to do it. For example, you could specify a default pixmap image to use in your `~/.Xresources', e.g.,
Emacs*EmacsFrame.default.attributeBackgroundPixmap: /path/to/image.xpmand then reload ~/.Xresources and restart XEmacs. Alternatively, since each face can have its own pixmap background, a better way would be to set a face's pixmap within your XEmacs init file, e.g.,
(set-face-background-pixmap 'default "/path/to/image.xpm") (set-face-background-pixmap 'bold "/path/to/another_image.xpm")and so on. You can also do this interactively via M-x edit-faces.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
(set-specifier has-modeline-p nil) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Add the following line to your `init.el'/`.emacs' file to display the line number:
(line-number-mode 1) |
Use the following to display the column number:
(column-number-mode 1) |
Or select from the Options menu
Advanced (Customize)->Emacs->Editing->Basics->Line Number Mode
and/or
Advanced (Customize)->Emacs->Editing->Basics->Column Number Mode
Or type M-x customize RET editing-basics RET.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Add the following line to your `init.el'/`.emacs' file to display the time:
(display-time) |
See Customize from the Options menu for customization.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
With AUC TeX, fast typing is hard because the current chapter, section etc. are given in the modeline. How can I turn this off?
It's not AUC TeX, it comes from func-menu in `func-menu.el'.
David Hughes writes:
Try this; you'll still get the function name displayed in the modeline, but it won't attempt to keep track when you modify the file. To refresh when it gets out of synch, you simply need click on the `Rescan Buffer' option in the function-menu.
(setq-default fume-auto-rescan-buffer-p nil)
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You can use something like the following:
(add-hook 'lisp-mode-hook
(lambda ()
(set-face-background 'modeline "red" (current-buffer))))
|
Then, when editing a Lisp file (i.e. when in Lisp mode), the modeline colors change from the default set in your `init.el'/`.emacs'. The change will only be made in the buffer you just entered (which contains the Lisp file you are editing) and will not affect the modeline colors anywhere else.
Notes:
-hook. eg. c-mode-hook,
c++-mode-hook, emacs-lisp-mode-hook (used for your
`init.el'/`.emacs' or a `xx.el' file),
lisp-interaction-mode-hook (the `*scratch*' buffer),
text-mode-hook, etc.
add-hook, not (setq c-mode-hook xxxx),
otherwise you will erase anything that anybody has already put on the
hook.
(set-face-font 'modeline font),
eg. (set-face-font 'modeline "*bold-r-normal*140-100-100*"
(current-buffer)) if you wish the modeline font to vary based on the
current mode.
There are additional modeline faces, modeline-buffer-id,
modeline-mousable, and modeline-mousable-minor-mode, which
you may want to customize.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Use the command M-x make-frame-on-display. This command is also on the File menu in the menubar.
The command make-frame-on-tty also exists, which will establish a
connection to any tty-like device. Opening the TTY devices should be
left to gnuclient, though.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes. Use gnuclient -nw. (Prior to 20.3, use the gnuattach
program supplied with XEmacs instead.)
Also see Q5.0.12: How do I disable gnuserv from opening a new frame?.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
As an example, say you want the paste key on a Sun keyboard to insert the current Primary X selection at point. You can accomplish this with:
(define-key global-map [f18] 'x-insert-selection) |
However, this only works if there is a current X selection (the
selection will be highlighted). The functionality I like is for the
paste key to insert the current X selection if there is one,
otherwise insert the contents of the clipboard. To do this you need to
pass arguments to x-insert-selection. This is done by wrapping
the call in a 'lambda form:
(global-set-key [f18] (lambda () (interactive) (x-insert-selection t nil))) |
This binds the f18 key to a generic functional object. The interactive spec is required because only interactive functions can be bound to keys.
For the FAQ example you could use:
(global-set-key [(control ?.)] (lambda () (interactive) (scroll-up 1))) (global-set-key [(control ?;)] (lambda () (interactive) (scroll-up -1))) |
This is fine if you only need a few functions within the lambda body. If you're doing more it's cleaner to define a separate function as in question 3.5.3 (see section Q3.5.3: How do I bind C-. and C-; to scroll one line up and down?).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Add the following line to your `init.el'/`.emacs' file:
(setq next-line-add-newlines nil) |
This has been the default setting in XEmacs for some time.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Add the following (Thanks to Richard Mlynarik and Wayne Newberry) to `.emacs':
(defun scroll-up-one-line () (interactive) (scroll-up 1)) (defun scroll-down-one-line () (interactive) (scroll-down 1)) (global-set-key [(control ?.)] 'scroll-up-one-line) ; C-. (global-set-key [(control ?;)] 'scroll-down-one-line) ; C-; |
The key point is that you can only bind simple functions to keys; you can not bind a key to a function that you're also passing arguments to. (see section 3.5: The Keyboard for a better answer).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I cannot manage to globally bind my Delete key to something other than the default. How does one do this?
Answer: The problem is that many modes explicitly bind Delete. To get around this, try the following:
(defun foo () (interactive) (message "You hit DELETE")) (define-key key-translation-map 'delete 'redirected-delete) (global-set-key 'redirected-delete 'foo) |
Also see Q3.5.10: Can I turn on sticky modifier keys?.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Can the cursor keys scroll the screen a line at a time, rather than the default half page jump? I tend it to find it disorienting.
Try this:
(defun scroll-one-line-up (&optional arg) "Scroll the selected window up (forward in the text) one line (or N lines)." (interactive "p") (scroll-up (or arg 1))) (defun scroll-one-line-down (&optional arg) "Scroll the selected window down (backward in the text) one line (or N)." (interactive "p") (scroll-down (or arg 1))) (global-set-key [up] 'scroll-one-line-up) (global-set-key [down] 'scroll-one-line-down) |
The following will also work but will affect more than just the cursor keys (i.e. C-n and C-p):
(setq scroll-step 1) |
Starting with XEmacs-20.3 you can also change this with Customize.
Select from the Options menu
Advanced (Customize)->Emacs->Environment->Windows->Scroll Step... or type
M-x customize RET windows RET.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The following works in GNU Emacs 19:
(global-set-key [help] 'help-command);; Help |
The following works in XEmacs with the addition of shift:
(global-set-key [(shift help)] 'help-command);; Help |
But it doesn't work alone. This is in the file `PROBLEMS' which should have come with your XEmacs installation: Emacs ignores the help key when running OLWM.
OLWM grabs the help key, and retransmits it to the appropriate
client using
XSendEvent. Allowing Emacs to react to synthetic
events is a security hole, so this is turned off by default. You can
enable it by setting the variable x-allow-sendevents to t. You
can also cause fix this by telling OLWM to not grab the help key, with
the null binding OpenWindows.KeyboardCommand.Help:.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
x-compose. Then you can use
sequences like Compose " a to get ä, etc.
Another way is to use the iso-insert package. Then you can use
sequences like C-x 8 " a to get ä, etc.
Glynn Clements writes:
It depends upon your X server.Generally, the simplest way is to define a key as Multi_key with xmodmap, e.g.
xmodmap -e 'keycode 0xff20 = Multi_key'You will need to pick an appropriate keycode. Use xev to find out the keycodes for each key.
[NB: On a `Windows' keyboard, recent versions of XFree86 automatically define the right `Windows' key as Multi_key'.]
Once you have Multi_key defined, you can use e.g.
Multi a ' => á Multi e " => ë Multi c , => çetc.
Also, recent versions of XFree86 define various AltGr-<key> combinations as dead keys, i.e.
etc.
AltGr [ => dead_diaeresis AltGr ] => dead_tilde AltGr ; => dead_acuteRunning `xmodmap -pk' will list all of the defined keysyms.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Obsolete question, left blank to avoid renumbering.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
With XEmacs-20.2 use the delbs package:
(require 'delbs) |
This will give you the functions delbs-enable-delete-forward to
set things up, and delbs-disable-delete-forward to revert to
"normal" behavior. Note that delbackspace package is obsolete.
Starting with XEmacs-20.3 better solution is to set variable
delete-key-deletes-forward to t. You can also change this with
Customize. Select from the Options menu
Advanced (Customize)->Emacs->Editing->Basics->Delete Key Deletes Forward or
type M-x customize RET editing-basics RET.
Also see Q3.5.4: Globally binding Delete?.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes, with (setq modifier-keys-are-sticky t). This will give the
effect of being able to press and release Shift and have the next
character typed come out in upper case. This will affect all the other
modifier keys like Control and Meta as well.
Ben Wing writes:
One thing about the sticky modifiers is that if you move the mouse out of the frame and back in, it cancels all currently "stuck" modifiers.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Sam Steingold writes:
or
; both XEmacs and Emacs (define-key global-map [(control right)] 'forward-word)or
; Emacs only (define-key global-map [C-right] 'forward-word)
; ver > 20, both (define-key global-map (kbd "C-<right>") 'forward-word)
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I'd like to have the bar cursor a little thicker, as I tend to "lose" it often.
For a 1 pixel bar cursor, use:
(setq bar-cursor t) |
For a 2 pixel bar cursor, use:
(setq bar-cursor 'anything-else) |
Starting with XEmacs-20.3 you can also change these with Customize.
Select from the Options menu
Advanced (Customize)->Emacs->Environment->Display->Bar Cursor... or type
M-x customize RET display RET.
You can use a color to make it stand out better:
Emacs*cursorColor: Red |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
(setq bar-cursor nil) |
Starting with XEmacs 20.3 you can also change this with Customize.
Select from the Options menu
Advanced (Customize)->Emacs->Environment->Display->Bar Cursor... or type
M-x customize RET display RET.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes, like this:
(blink-cursor-mode) |
This function toggles between a steady cursor and a blinking cursor. You may also set this mode from the menu bar by selecting `Options => Frame Appearance => Blinking Cursor'. Remember to save options.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I keep hitting the middle mouse button by accident and getting stuff pasted into my buffer so how can I turn this off?
Here is an alternative binding, whereby the middle mouse button selects
(but does not cut) the expression under the mouse. Clicking middle on a
left or right paren will select to the matching one. Note that you can
use define-key or global-set-key.
(defun mouse-set-point-and-select (event) "Sets the point at the mouse location, then marks following form" (interactive "@e") (mouse-set-point event) (mark-sexp 1)) (define-key global-map [button2] 'mouse-set-point-and-select) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Use, for instance, [(meta button1)]. For example, here is a common
setting for Common Lisp programmers who use the bundled ilisp
package, whereby meta-button1 on a function name will find the file where
the function name was defined, and put you at that location in the source
file.
[Inside a function that gets called by the lisp-mode-hook and ilisp-mode-hook]
(local-set-key [(meta button1)] 'edit-definitions-lisp) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I do C-x C-b to get a list of buffers and the entries get highlighted when I move the mouse over them but clicking the left mouse does not do anything.
Use the middle mouse button.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The following code will replace the default popup on button3:
(global-set-key [button3] 'popup-buffer-menu) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
We don't know. It's a bug. There does seem to be a work-around, however. Try running xclipboard first. It appears to fix the problem even if you exit it. (This should be mostly fixed in 19.13, but we haven't yet verified that).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
By default XEmacs pastes X selections where the mouse pointer is. How do I disable this?
Examine the function mouse-yank, by typing C-h f mouse-yank
RET.
To get XEmacs to paste at the text cursor, add this your `init.el'/`.emacs':
(setq mouse-yank-at-point t) |
Starting with XEmacs-20.2 you can also change this with Customize.
Select from the Options menu
Advanced (Customize)->Emacs->Editing->Mouse->Yank At Point... or type
M-x customize RET mouse RET.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Just select the region normally, then use the rectangle commands (e.g.
kill-rectangle on it. The region does not highlight as a
rectangle, but the commands work just fine.
To actually sweep out rectangular regions with the mouse you can use
mouse-track-do-rectangle which is assigned to M-button1.
Then use rectangle commands.
You can also do the following to change default behavior to sweep out rectangular regions:
(setq mouse-track-rectangle-p t) |
Starting with XEmacs-20.2 you can also change this with Customize.
Select from the Options menu
Advanced (Customize)->Emacs->Editing->Mouse->Track Rectangle... or type
M-x customize RET mouse RET.
mouse-track-do-rectangle: (event) -- an interactive compiled Lisp function. Like `mouse-track' but selects rectangles instead of regions. |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
It actually doesn't. It leaves the region visible for a second so that you can see what area is being yanked. If you start working, though, it will immediately complete its operation. In other words, it will only delay for a second if you let it.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
(set-specifier menubar-visible-p nil) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
For an extensive menubar, add this line to your `init.el'/`.emacs':
(load "big-menubar") |
If you'd like to write your own, this file provides as good a set of examples as any to start from. The file is located in `lisp/packages/big-menubar.el' in the XEmacs installation directory.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Buffers List? Add the following to your `init.el'/`.emacs' (suit to fit):
(setq buffers-menu-max-size 20) |
For no limit, use an argument of `nil'.
Starting with XEmacs-20.3 you can also change this with Customize.
Select from the Options menu
Advanced (Customize)->Emacs->Environment->Menu->Buffers Menu->Max Size... or
type M-x customize RET buffers-menu RET.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Emacs*menubar*font are not working?
I am trying to use a resource like Emacs*menubar*font to set the
font of the menubar but it's not working.
If you are using the real Motif menubar, this resource is not recognized; you have to say:
Emacs*menubar*fontList: FONT |
If you are using the Lucid menubar, the former resource will be recognized only if the latter resource is unset. This means that the resource
*fontList: FONT |
will override
Emacs*menubar*font: FONT |
even though the latter is more specific.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Try something like:
(defun my-toggle-toolbar ()
(interactive)
(set-specifier default-toolbar-visible-p
(not (specifier-instance default-toolbar-visible-p))))
(global-set-key "\C-xT" 'my-toggle-toolbar)
|
There are redisplay bugs in 19.14 that may make the preceding result in a messed-up display, especially for frames with multiple windows. You may need to resize the frame before XEmacs completely realizes the toolbar is really gone.
Thanks to Martin Buchholz for the correct code.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To disable them for all frames, add the following line to your `.Xdefaults':
Emacs.scrollBarWidth: 0 |
Or select from the Options menu Frame Appearance->Scrollbars.
Remember to save options.
To turn the scrollbar off on a per-frame basis, use the following function:
(set-specifier scrollbar-width 0 (selected-frame)) |
You can actually turn the scrollbars on at any level you want by substituting for (selected-frame) in the above command. For example, to turn the scrollbars off only in a single buffer:
(set-specifier scrollbar-width 0 (current-buffer)) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Here's a recap of how to use resources to change your scrollbar colors:
! Motif scrollbars Emacs*XmScrollBar.Background: skyblue Emacs*XmScrollBar.troughColor: lightgray ! Athena scrollbars Emacs*Scrollbar.Foreground: skyblue Emacs*Scrollbar.Background: lightgray |
Note the capitalization of Scrollbar for the Athena widget.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When I move the scrollbar in an XEmacs window, it moves the point as well, which should not be the default behavior. Is this a bug or a feature? Can I disable it?
The current behavior is a feature, not a bug. Point remains at the same buffer position as long as that position does not scroll off the screen. In that event, point will end up in either the upper-left or lower-left hand corner.
This cannot be changed.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Do (setq truncate-lines t) in the mode-hooks for any modes
in which you want lines truncated.
More precisely: If truncate-lines is nil, horizontal scrollbars
will never appear. Otherwise, they will appear only if the value of
scrollbar-height for that buffer/window/etc. is non-zero. If you
do
(set-specifier scrollbar-height 0) |
then horizontal scrollbars will not appear in truncated buffers unless the package specifically asked for them.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The zmacs mode allows for what some might call gratuitous
highlighting for selected regions (either by setting mark or by using
the mouse). This is the default behavior. To turn off, add the
following line to your `init.el'/`.emacs' file:
(setq zmacs-regions nil) |
Starting with XEmacs-20.2 you can also change this with Customize. Select
from the Options menu Advanced (Customize)->Emacs->Editing->Basics->Zmacs
Regions or type M-x customize RET editing-basics RET.
To change the face for selection, look at Options->Customize on
the menubar.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I want to change things so that if I select some text and start typing, the typed text replaces the selected text, similar to Motif.
You want to use something called pending delete. Pending delete is what happens when you select a region (with the mouse or keyboard) and you press a key to replace the selected region by the key you typed. Usually backspace kills the selected region.
To get this behavior, add the following lines to your `init.el'/`.emacs':
(cond ((fboundp 'turn-on-pending-delete) (turn-on-pending-delete)) ((fboundp 'pending-delete-on) (pending-delete-on t))) |
Note that this will work with both Backspace and Delete. This code is a tad more complicated than it has to be for XEmacs in order to make it more portable.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
I do not like my text highlighted while I am doing isearch as I am not able to see what's underneath. How do I turn it off?
Put the following in your `init.el'/`.emacs':
(setq isearch-highlight nil) |
Starting with XEmacs-20.2 you can also change this with Customize. Type M-x customize-variable RET isearch-highlight RET.
Note also that isearch-highlight affects query-replace and ispell.
Instead of disabling isearch-highlight you may find that a better
solution consists of customizing the isearch face.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Put this in your .emacs:
(setq zmacs-regions nil) |
Warning: This command turns off all region highlighting.
Also see 3.10: Text Selections.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This has been fixed by default starting with XEmacs-20.3.
With older versions you can turn this feature (if it indeed is a feature) off like this:
(defadvice scroll-up (around scroll-up freeze)
(interactive "_P")
(let ((zmacs-region-stays t))
(if (interactive-p)
(condition-case nil
ad-do-it
(end-of-buffer (goto-char (point-max))))
ad-do-it)))
(defadvice scroll-down (around scroll-down freeze)
(interactive "_P")
(let ((zmacs-region-stays t))
(if (interactive-p)
(condition-case nil
ad-do-it
(beginning-of-buffer (goto-char (point-min))))
ad-do-it)))
|
Thanks to T. V. Raman for assistance in deriving this answer.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This is part 4 of the XEmacs Frequently Asked Questions list. This section is devoted to major XEmacs subsystems.
| Reading Mail with VM: | ||
|---|---|---|
| 4.0: Reading Mail with VM | How do I set up VM to retrieve remote mail using POP? | |
| Q4.0.2: How do I get VM to filter mail for me? | How do I get VM to filter mail for me? | |
| Q4.0.3: How can I get VM to automatically check for new mail? | How can I get VM to automatically check for new mail? | |
| Q4.0.4: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q4.0.5: How do I get my outgoing mail archived? | How do I get my outgoing mail archived? | |
| Q4.0.6: I have various addresses at which I receive mail. How can I tell VM to ignore them when doing a "reply-all"? | I have various addresses at which I receive mail. How can I tell VM to ignore them when doing a "reply-all"? | |
| Q4.0.7: Is there a mailing list or FAQ for VM? | Is there a mailing list or FAQ for VM? | |
| Q4.0.8: Remote mail reading with VM. | Remote mail reading with VM. | |
| Q4.0.9: rmail or VM gets an error incorporating new mail. | rmail or VM gets an error incorporating new mail. | |
| Q4.0.10: How do I make VM stay in a single frame? | How do I make VM stay in a single frame? | |
| Q4.0.11: How do I make VM or mh-e display graphical smilies? | How do I make VM or mh-e display graphical smilies? | |
| Q4.0.12: Customization of VM not covered in the manual, or here. | Customization of VM not covered in the manual or here. | |
| Web browsing with W3: | ||
| 4.1: Web browsing with W3 | What is W3? | |
| Q4.1.2: How do I run W3 from behind a firewall? | How do I run W3 from behind a firewall? | |
| Q4.1.3: Is it true that W3 supports style sheets and tables? | Is it true that W3 supports style sheets and tables? | |
| Reading Netnews and Mail with Gnus: | ||
| 4.2: Reading Netnews and Mail with Gnus | GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus,argh! | |
| Q4.2.2: This question intentionally left blank. | [This question intentionally left blank] | |
| Q4.2.3: How do I make Gnus stay within a single frame? | How do I make Gnus stay within a single frame? | |
| Q4.2.4: How do I customize the From: line? | How do I customize the From: line? | |
| Other Mail & News: | ||
| 4.3: Other Mail & News | How can I read and/or compose MIME messages? | |
| Q4.3.2: What is TM and where do I get it? | What is TM and where do I get it? | |
Q4.3.3: Why isn't this movemail program working? | Why isn't this movemail program working? | |
| Q4.3.4: Movemail is also distributed by Netscape? Can that cause problems? | Movemail is also distributed by Netscape? Can that cause problems? | |
| Q4.3.5: Where do I find pstogif (required by tm)? | Where do I find pstogif (required by tm)? | |
| Sparcworks, EOS, and WorkShop: | ||
| 4.4: Sparcworks, EOS, and WorkShop | What is SPARCworks, EOS, and WorkShop | |
| Q4.4.2: How do I start the Sun Workshop support in XEmacs 21? | How do I start the Sun Workshop support in XEmacs 21? | |
| Energize: | ||
| 4.5: Energize | What is/was Energize? | |
| Infodock: | ||
| 4.6: Infodock | What is Infodock? | |
| Other Unbundled Packages: | ||
| 4.7: Other Unbundled Packages | What is AUC TeX? Where do you get it? | |
| Q4.7.2: Are there any Emacs Lisp Spreadsheets? | Are there any Emacs Lisp Spreadsheets? | |
| Q4.7.3: [This question intentionally left blank] | [This question intentionally left blank] | |
| Q4.7.4: Problems installing AUC TeX. | Problems installing AUC TeX | |
| Q4.7.5: Is there a reason for an Emacs package not to be included in XEmacs? | Is there a reason for an Emacs package not to be included in XEmacs? | |
| Q4.7.5: Is there a MatLab mode? | Is there a MatLab mode? | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Use vm-spool-files, like this for example:
(setq vm-spool-files '("/var/spool/mail/wing"
"netcom23.netcom.com:110:pass:wing:MYPASS"))
|
Of course substitute your actual password for MYPASS.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
One possibility is to use procmail to split your mail before it gets to VM. I prefer this personally, since there are many strange and wonderful things one can do with procmail. Procmail may be found at ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/.
Also see the Mail Filtering FAQ at: ftp://rtfm.mit.edu/pub/usenet/news.answers/mail/filtering-faq.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
John Turner writes:
Use the following:
(setq vm-auto-get-new-mail 60)
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Obsolete question, left blank to avoid renumbering.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
(setq mail-archive-file-name "~/outbox") |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Set vm-reply-ignored-addresses to a list, like
(setq vm-reply-ignored-addresses
'("wing@nuspl@nvwls.cc.purdue.edu,netcom[0-9]*.netcom.com"
"wing@netcom.com" "wing@xemacs.org"))
|
Note that each string is a regular expression.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
A FAQ for VM exists at http://www.wonderworks.com/vm/FAQ.html.
VM has its own newsgroups gnu.emacs.vm.info and gnu.emacs.vm.bug.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
My mailbox lives at the office on a big honkin server. My regular INBOX lives on my honkin desktop machine. I now can PPP to the office from home which is far from honking... I'd like to be able to read mail at home without storing it here and I'd like to use xemacs and VM at home... Is there a recommended setup?
Joseph J. Nuspl Jr. writes:
There are several ways to do this.
- Set your display to your home machine and run dxpc or one of the other X compressors.
- NFS mount your desktop machine on your home machine and modify your pop command on your home machine to rsh to your desktop machine and actually do the pop get's.
- Run a POP server on your desktop machine as well and do a sort of two tiered POP get.
William Perry adds:
Or you could run a pop script periodically on your desktop machine, and just use ange-ftp or NFS to get to your mailbox. I used to do this all the time back at IU.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Quoting the XEmacs PROBLEMS file:
rmail and VM get new mail from `/usr/spool/mail/$USER' using a program calledmovemail. This program interlocks with/bin/mailusing the protocol defined by/bin/mail.There are two different protocols in general use. One of them uses the
flocksystem call. The other involves creating a lock file;movemailmust be able to write in `/usr/spool/mail' in order to do this. You control which one is used by defining, or not defining, the macroMAIL_USE_FLOCKin `config.h' or the m- or s- file it includes.IF YOU DON'T USE THE FORM OF INTERLOCKING THAT IS NORMAL ON YOUR SYSTEM, YOU CAN LOSE MAIL!
If your system uses the lock file protocol, and fascist restrictions prevent ordinary users from writing the lock files in `/usr/spool/mail', you may need to make
movemailsetgid to a suitable group such as `mail'. You can use these commands (as root):
chgrp mail movemail chmod 2755 movemailIf your system uses the lock file protocol, and fascist restrictions prevent ordinary users from writing the lock files in `/usr/spool/mail', you may need to make
movemailsetgid to a suitable group such as
chgrp mail movemail chmod 2755 movemailInstallation normally copies movemail from the build directory to an installation directory which is usually under `/usr/local/lib'. The installed copy of
movemailis usually in the directory `/usr/local/lib/emacs/VERSION/TARGET'. You must change the group and mode of the installed copy; changing the group and mode of the build directory copy is ineffective.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
John.John S Cooper writes:
; Don't use multiple frames (setq vm-frame-per-composition nil) (setq vm-frame-per-folder nil) (setq vm-frame-per-edit nil) (setq vm-frame-per-summary nil)
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
(add-hook 'mh-show-mode-hook '(lambda ()
(smiley-region (point-min)
(point-max))))
|
WJCarpenter writes: For VM use the following:
(autoload 'smiley-region "smiley" nil t)
(add-hook 'vm-select-message-hook
'(lambda ()
(smiley-region (point-min)
(point-max))))
|
For tm use the following:
(autoload 'smiley-buffer "smiley" nil t) (add-hook 'mime-viewer/plain-text-preview-hook 'smiley-buffer) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
giacomo boffi writes:
The meta-answer is to look into the file `vm-vars.el', in the vm directory of the lisp library.`vm-vars.el' contains, initializes and carefully describes, with examples of usage, the plethora of user options that fully control VM's behavior.
Enter vm-vars,
forward-searchfor toolbar, find the variables that control the toolbar placement, appearance, existence, copy to your `init.el'/`.emacs' or `.vm' and modify according to the detailed instructions.The above also applies to all the various features of VM: search for some keywords, maybe the first you conjure isn't appropriate, find the appropriate variables, copy and experiment.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
W3 is an advanced graphical browser written in Emacs lisp that runs on XEmacs. It has full support for cascaded style sheets, and more...
It has a home web page at http://www.cs.indiana.edu/elisp/w3/docs.html.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There is a long, well-written, detailed section in the W3 manual that describes how to do this. Look in the section entitled "Firewalls".
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes, and much more. W3, as distributed with the latest XEmacs is a full-featured web browser.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Gnus numbering issues are not meant for mere mortals to know them. If you feel you must enter the muddy waters of Gnus, visit the excellent FAQ, maintained by Justin Sheehy, at:
http://www.ccs.neu.edu/software/contrib/gnus/ |
See also Gnus home page
http://www.gnus.org/ |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Obsolete question, left blank to avoid renumbering.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The toolbar code to start Gnus opens the new frame--and it's a feature rather than a bug. If you don't like it, but would still like to click on the seemly icon, use the following code:
(defun toolbar-news () (gnus)) |
It will redefine the callback function of the icon to just call
gnus, without all the fancy frame stuff.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
How do I change the From: line? I have set gnus-user-from-line
to
Gail Gurman <gail.gurman@sybase.com> |
Gail Mara Gurman gailg@deall |
Lars Magne Ingebrigtsen writes:
Setuser-mail-addressto `gail.gurman@sybase.com' ormail-host-addressto `sybase.com'.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
VM supports MIME natively.
You probably want to use the Tools for MIME (tm). See section Q4.3.2: What is TM and where do I get it?, for details.
Trey Jackson has an Emacs & MIME web page at http://bmrc.berkeley.edu/~trey/emacs/mime.html.
Another possibility is RMIME. You may find RMIME at http://www.cinti.net/~rmoody/rmime/index.html.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
TM stands for Tools for MIME and not Tiny MIME. TM integrates with all major XEmacs packages like Gnus (all flavors), VM, MH-E, and mailcrypt. It provides totally transparent and trouble-free MIME support. When appropriate a message will be decoded in place in an XEmacs buffer.
TM now comes as a package with XEmacs 19.16 and XEmacs 20.2.
TM was written by MORIOKA Tomohiko and KOBAYASHI Shuhei.
It is based on the work of UMEDA Masanobu, the original writer of GNUS.
The following information is from the `README':
tm is a MIME package for GNU Emacs. tm has following functions:
tm is available from following anonymous ftp sites:
Don't let the installation procedure & instructions stop you from trying this package out--it's much simpler than it looks, and once installed, trivial to use.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
movemail program working? Ben Wing ben@xemacs.org writes:
It wasn't chown'ed/chmod'd correctly.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Steve Baur writes:
Yes. Always use the movemail installed with your XEmacs. Failure to do so can result in lost mail.
Please refer to Jamie Zawinski's notes at http://home.netscape.com/eng/mozilla/2.0/relnotes/demo/movemail.html. In particular, this document will show you how to make Netscape use the version of movemail configured for your system by the person who built XEmacs.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
pstogif is part of the latex2html package.
Jan Vroonhof writes:
latex2html is best found at the CTAN hosts and their mirrors in `tex-archive/support/latex2html'.
CTAN hosts are:
There is a good mirror at ftp.cdrom.com; ftp://ftp.cdrom.com/pub/tex/ctan/support/latex2html/.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
John Turner writes:
SPARCworks is SunSoft's development environment, comprising compilers (C, C++, FORTRAN 77, Fortran 90, Ada, and Pascal), a debugger, and other tools such as TeamWare (for configuration management), MakeTool, etc.
See http://www.sun.com/software/Developer-products/ for more info.
EOS stands for "Era on SPARCworks", but I don't know what Era stands for.
EOS is the integration of XEmacs with the SPARCworks debugger. It allows one to use an XEmacs frame to view code (complete with fontification, etc.), set breakpoints, print variables, etc., while using the SPARCworks debugger. It works very well and I use it all the time.
Chuck Thompson writes:
Era stood for "Emacs Rewritten Again". It was what we were calling the modified version of Lucid Emacs for Sun when I was dragged, er, allowed to work on this wonderful editor.
Martin Buchholz writes:
EOS is being replaced with a new graphical development environment called Sun WorkShop, which is currently (07/96) in Alpha Test. For more details, check out http://www.sun.com/software/Products/Developer-products.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Add the switch --with-workshop to the configure command when building XEmacs and put the following in one of your startup files (e.g. site-start.el or .emacs):
(when (featurep 'tooltalk) (load "tooltalk-macros") (load "tooltalk-util") (load "tooltalk-init")) (when (featurep 'sparcworks) (load "sunpro-init") (load "ring") (load "comint") (load "annotations") (sunpro-startup)) |
If you are not using the latest Workshop (5.0) you have to apply the following patch:
--- /opt/SUNWspro/lib/eserve.el.ORIG Fri May 14 15:23:26 1999
+++ /opt/SUNWspro/lib/eserve.el Fri May 14 15:24:54 1999
@@ -42,7 +42,7 @@
(defvar running-xemacs nil "t if we're running XEmacs")
(defvar running-emacs nil "t if we're running GNU Emacs 19")
-(if (string-match "^\\(19\\|20\\)\..*\\(XEmacs\\|Lucid\\)" emacs-version)
+(if (string-match "\\(XEmacs\\|Lucid\\)" emacs-version)
(setq running-xemacs t)
(setq running-emacs t))
|
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
David N Gray writes:
The files in `lisp/energize' are to enable Emacs to interface with the "Energize Programming System", a C and C++ development environment, which was a product of Lucid, Inc. Tragically, Lucid went out of business in 1994, so although Energize is still a great system, if you don't already have it, there isn't any way to get it now. (Unless you happen to be in Japan; INS Engineering may still be selling it there. Tartan bought the rights to sell it in the rest of the world, but never did so.)
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
InfoDock is an integrated productivity toolset, mainly aimed at technical people, hosted at SourceForge.
InfoDock is built atop the XEmacs variant of GNU Emacs and so has all of the power of Emacs, but with an easier to use and more comprehensive menu-based user interface. The bottom portion of this text describes how it differs from XEmacs and GNU Emacs from the Free Software Foundation.
InfoDock is aimed at people who want a free, turn-key productivity environment. Although InfoDock is customizable, it is not intended for people who like basic versions of Emacs which need to be customized extensively for local use; standard Emacs distributions are better for such uses. InfoDock is for those people who want a complete, pre-customized environment in one package, which they need not touch more than once or twice a year to update to new revisions.
InfoDock is pre-built for SPARC SunOS/Solaris systems, PA-RISC HP-UX, and Intel Linux systems. It is intended for use on a color display, although most features will work on monochrome monitors. Simply unpack InfoDock according to the instructions in the ID-INSTALL file and you are ready to run.
The InfoDock Manual is concise, yet sufficient as a user guide for users who have never used an Emacs-type editor before. For users who are already familiar with Emacs, it supplements the information in the GNU Emacs Manual.
InfoDock menus are much more extensive and more mature than standard Emacs menus. Each menu offers a `Manual' item which displays documentation associated with the menu's functions.
Four types of menubars are provided:
Most modes also include mode-specific popup menus. Additionally, region and rectangle popup menus are included.
`Hyperbole', the everyday information manager, is a core part of InfoDock. This provides context-sensitive mouse keys, a rolodex-type contact manager, programmable hypertext buttons, and an autonumbered outliner with embedded hyperlink anchors.
The `OO-Browser', a multi-language object-oriented code browser, is a standard part of InfoDock.
InfoDock saves a more extensive set of user options than other Emacs versions.
InfoDock inserts a useful file header in many file types, showing the author, summary, and last modification time of each file. A summary program can then be used to summarize all of the files in a directory, for easy MANIFEST file creation.
Your working set of buffers is automatically saved and restored (if you answer yes to a prompt) between InfoDock sessions.
Refined color choices for code highlighting are provided for both dark and light background display frames.
The C-z key prefix performs frame-based commands which parallel the C-x key prefix for window-based commands.
The Smart Menu system is included for producing command menus on dumb terminals.
Lisp libraries are better categorized according to function.
Extensions and improvements to many areas of Emacs are included, such as: paragraph filling, mail reading with Rmail, shell handling, outlining, code highlighting and browsing, and man page browsing.
InfoDock questions, answers and discussion should go to the mail list infodock@infodock.com. Use infodock-request@infodock.com to be added or removed from the list. Always include your InfoDock version number when sending help requests.
InfoDock is available across the Internet via anonymous FTP. To get it, first move to a directory into which you want the InfoDock archive files placed. We will call this <DIST-DIR>.
cd <DIST-DIR> |
Ftp to ftp.xemacs.org (Internet Host ID = 128.174.252.16):
prompt> ftp ftp.xemacs.org |
Login as `anonymous' with your own <user-id>@<site-name> as a password.
Name (ftp.xemacs.org): anonymous 331 Guest login ok, send your complete e-mail address as password. Password: -<your-user-id>@<your-domain> 230 Guest login ok, access restrictions apply. |
Move to the location of the InfoDock archives:
ftp> cd pub/infodock |
Set your transfer mode to binary:
ftp> bin 200 Type set to I. |
Turn off prompting:
ftp> prompt Interactive mode off. |
Retrieve the InfoDock archives that you want, either by using a `get <file>' for each file you want or by using the following to get a complete distribution, including all binaries:
ftp> mget ID-INSTALL ftp> mget id-* |
Close the FTP connection:
ftp> quit 221 Goodbye. |
Read the `ID-INSTALL' file which you just retrieved for step-by-step installation instructions.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
AUC TeX is a package written by Per Abrahamsen. Starting with XEmacs 19.16, AUC TeX is bundled with XEmacs. The following information is from the `README' and website.
AUC TeX is an extensible package that supports writing and formatting TeX files for most variants of GNU Emacs. Many different macro packages are supported, including AMS TeX, LaTeX, and TeXinfo.
The most recent version is always available by ftp at ftp://sunsite.dk/packages/auctex/auctex.tar.gz.
In case you don't have access to anonymous ftp, you can get it by an email request to ftpmail@decwrl.dec.com.
WWW users may want to check out the AUC TeX page at http://sunsite.dk/auctex/.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes. Check out dismal (which stands for Dis' Mode Ain't Lotus) at ftp://cs.nyu.edu/pub/local/fox/dismal/.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Jan Vroonhof writes:
AUC TeX works fine on both stock Emacs and XEmacs has been doing so for a very very long time. This is mostly due to the work of Per Abrahamsen (clap clap) in particular his `easymenu' package. Which leads to what is probably the problem...
Most problems with AUC TeX are one of two things:
Fix: make sure you configure AUC TeX properly before installing.
Fix: use locate-library and remove old versions to make sure it
only finds the one that came with XEmacs.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The reason for an Emacs package not to be included in XEmacs is usually one or more of the following:
Porting a package to XEmacs can range from a trivial amount of change to a partial or full rewrite. Fortunately, the authors of modern packages usually choose to support both Emacsen themselves.
Each package bundled with XEmacs means more work for the maintainers, whether they want it or not. If you are ready to take over the maintenance responsibilities for the package you port, be sure to say so--we will more likely include it.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes, a matlab mode and other items are available at the MathWorks' emacs_add_ons ftp directory.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This is part 5 of the XEmacs Frequently Asked Questions list. This section is devoted to anything that doesn't fit neatly into the other sections.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
For most modes, font-lock is already set up and just needs to be turned on. This can be done by adding the line:
(require 'font-lock) |
to your `init.el'/`.emacs'. (You can turn it on for the current buffer and session only by M-x font-lock-mode.) See the file `etc/sample.init.el' (`etc/sample.emacs' in XEmacs versions prior to 21.4) for more information.
See also Syntax Highlighting from the Options menu.
Remember to save options.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Well, first off, consider if you really want to do this. cc-mode is
much more powerful than the old c-mode. If you're having trouble
getting your old offsets to work, try using c-set-offset instead.
You might also consider using the package cc-compat.
But, if you still insist, add the following lines to your `init.el'/`.emacs':
(fmakunbound 'c-mode) (makunbound 'c-mode-map) (fmakunbound 'c++-mode) (makunbound 'c++-mode-map) (makunbound 'c-style-alist) (load-library "old-c-mode") (load-library "old-c++-mode") |
This must be done before any other reference is made to either c-mode or c++-mode.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Use the following code in your `init.el'/`.emacs':
(setq-default font-lock-maximum-decoration t) |
See also Syntax Highlighting from the Options menu.
Remember to save options.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Put the following line in your `init.el'/`.emacs':
(setq indent-line-function 'indent-relative-maybe) |
If you want to get fancy, try the filladapt package available
standard with XEmacs. Put this into your `init.el'/`.emacs':
(require 'filladapt) (setq-default filladapt-mode t) (add-hook 'c-mode-hook 'turn-off-filladapt-mode) |
This will enable Filladapt for all modes except C mode, where it doesn't
work well. To turn Filladapt on only in particular major modes, remove
the (setq-default ...) line and use
turn-on-filladapt-mode, like this:
(add-hook 'text-mode-hook 'turn-on-filladapt-mode) |
You can customize filling and adaptive filling with Customize.
Select from the Options menu
Advanced (Customize)->Emacs->Editing->Fill->Fill...
or type M-x customize RET fill RET.
Note that well-behaving text-lookalike modes will run
text-mode-hook by default (e.g. that's what Message does). For
the nasty ones, you'll have to provide the add-hooks yourself.
Please note that the fa-extras package is no longer useful.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Try the following lisp in your `init.el'/`.emacs':
(setq default-major-mode 'text-mode) (setq text-mode-hook 'turn-on-auto-fill) |
WARNING: note that changing the value of
default-major-mode from fundamental-mode can break a large
amount of built-in code that expects newly created buffers to be in
fundamental-mode. (Changing from fundamental-mode to
text-mode might not wreak too much havoc, but changing to
something more exotic like a lisp-mode would break many Emacs packages).
Note that Emacs by default starts up in buffer *scratch* in
initial-major-mode, which defaults to
lisp-interaction-mode. Thus adding the following form to your
Emacs init file will cause the initial *scratch* buffer to be put
into auto-fill'ed text-mode:
(setq initial-major-mode
(lambda ()
(text-mode)
(turn-on-auto-fill)))
|
Note that after your init file is loaded, if
inhibit-startup-message is nil (the default) and the
startup buffer is *scratch* then the startup message will be
inserted into *scratch*; it will be removed after a timeout by
erasing the entire *scratch* buffer. Keep in mind this default
usage of *scratch* if you desire any prior manipulation of
*scratch* from within your Emacs init file. In particular,
anything you insert into *scratch* from your init file will be
later erased. Also, if you change the mode of the *scratch*
buffer, be sure that this will not interfere with possible later
insertion of the startup message (e.g. if you put *scratch* into
a nonstandard mode that has automatic font lock rules, then the startup
message might get fontified in a strange foreign manner, e.g. as code in
some programming language).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
In the *shell* buffer:
M-x rename-buffer RET *shell-1* RET M-x shell RET |
This will then start a second shell. The key is that no buffer named
`*shell*' can exist. It might be preferable to use M-x
rename-uniquely to rename the *shell* buffer instead of M-x
rename-buffer.
Alternately, you can set the variable shell-multiple-shells.
If the value of this variable is non-nil, each time shell mode is invoked,
a new shell is made