Since I won't get a consistend overview of xemacs here any time soon I think I'll add timestamps to the article so that you can follow the progress better.
10.1.2002: Found something similar to what I just posted again on my harddrive: xemacs-refcard-a4.ps and it's friend dired-ref.ps -Robos
10.1.2002: I recently read through the O'Reilly Pocket Reference and extracted the (imho) useful commands into a somewhat sorted list (USEFUL!). Not much meat to the individual commands but better'n nothing...
Next in the list of to-reads (and to-extracts) is the gnu emacs manual -Robos
1.1.2002: Found something really interesting in one of the early issues of linuxgazette. Since it already in article form and I don't want to rewrite the whole stuff I'll simply direct you there. Short form:
In xemacs type
Move the cursor to a function and press
Now move the cusor to the call of a function (not the declaration) and press
If you search for something in the whole source-code in that directory use
Older stuff: Now to something new concerning Xemacs: Do you know about speedbar? Me neither until a short time ago when Nils showed it to me. I have to confess that I didn't play with it that much till now (but I intent to!). Typing M-x speedbar should fire it up (if it has been compiled in and included in your distribution of Xemacs - you have to manually include it in Xemacs for win (at least in my old version - dunno which number), it's not standard there). A new window will open, rather slim and long, showing you the files and subdirectories in your current folder. When you move the cursor on one file and press enter you get that file in the main window - wow magic! I never said that it is the most remarkable thing I've ever seen but it's quite useful for quick navigation. So now go and check it out! (or take a look at the ld-page which I'm going to edit now) -RobosI assume you use xemacs from now on, since customization is a little easier and it got some nice features already activated. But the key-mapping is the same (AFAIK) for both of them. At start-up, you are in the "the buffer" for notes etc. With buffers they mean something like pages, folders. If you "find" something in a new buffer you actually open/create a new file. Since they call it "finding" you do it with Crtl-x Crtl-f (for find). From now on I refer to Crtl with a large C, i.e. the sequence is C-x C-f, meaning you hold down the Crtl key and press the other key. Commands are invoked either by using the Crtl-key or by using the "meta" key. Depending on your key binding (which is specified in your xf86config file in /etc/X11 probably) this is either the Alt key (from now on A) or, if you are unlucky, the Esc-key. You can also change the binding from Esc to Alt for the Meta key within emacs but actually I didn't figure it out (If you happen to find it out please write something on it to post here). If you press C-x C-f the cursor jumps to a region below the main window into a line. This line is called the mini-buffer. All commands you type in end up in that line. Now try Esc-Esc-Esc or alternatively C-g. This will quit the last command. But lets find a file: C-x C-f and press Tab in short succession: the window splits in two and in the lower part you see the contents of your home directory or the directory you were in when you started emacs. This mode is called dired (for directoy). Now you can either see what file you might wanna edit or simply keep on typing the name of a new file. Type for instance "tralala.txt" to find a new file called tralala.txt in the directory you saw before. If you press enter the window will unite again, be blank, and in the mini-buffer it says "new file". Now type something. To save you creative outburst you have to type C-x C-s. The x stands for eXecute (AFAIK) and the s of course for save. Now it wrote your creating to the platter under the name "tralala.txt". If you type C-x C-s again without having edited anything it says in the mini-buffer "no changes need to be saved"../../. Wow, hmm? Wordpad doesn't do this, hmm? But hey, emacs is written in Lisp and the other things Lisp is used frequently is in trying to create artificial intelligence. Then it might even figure out that nothing needs to be saved, don't you think?
So, that's all I know about xemacs! - No, not really.
You might wanna quit it now since you say "what the f**k is this!". You do this via C-x C-c, you sissy! The c stands for "Calling it quits"../../ or something. Now, lets start xemacs again (you might want to add a -rv to the xemacs command for reversed colors, my eyes like it more that way...rv stands for reverse video, try man xemacs for more options). We might want to change something on tralala.txt since we had another creativity-stroke (might even lead to a heart-stroke in the end ;-) ) - type C-x C-f tr and Tab. In case you had another file starting with with tr the window is split again and dired presents you with all the files starting with tr. Continue typing parts of tralala.txt and pressing Tab till it completes the whole word. I simply love this feature. And since emacs is a little older than you bash and since linux folks learn something from the past this also works on the terminal command line (not the C-.. but the Tab completion). But here is a command that also works on the command line: Go to the end of the line of you previous outburst with C-e (e for end). After careful consideration you consider it crap and wanna get lost of it. Type C-a (a for anfang *g (german for beginning)) and now C-k. Oh my god, you Killed it! Since you are a very moral person and consider killing a sin you may say a short prayer to beg for forgiveness or you might alternatively bring it back to live - yes, reincarnation - by pressing C-y. The emacs creator didn't call it reincarnation, the called it yanking and therefore the y.
So, you say, all the commands started with C till now, what about those staring with the "meta"../../ i.e. Alt key: Hmm, after bringing that last line back to life you might get a little megalomanic and want to clone that line (some normal people might also revert to it as copying...). Go to the beginning of the line (or even paragraph!), yes, with C-a, press C-Space, press C-e to go to the end of the line (or go wherever you want) and press - yes, there it is, the meta key - M-w. Or shall I write A-w? Ah, we'll see what I write, they both mean the same thing, the meta key. So either Esc or Alt. But I'm lucky, in my system its the Alt key. When you pressed the C-Space you set a mark on that position and when you pressed M-w you copied everything from that mark to the position where you pressed M-w. To let that cloned part incarnate you have to yank it (C-y). If you wanted to move that part (whuhu - teleportation) you should rather press C-w instead of M-w. Also good for killing larger parts - mass murder *g.
That's it for now!
Tune in again when it says:" Oh my god, yank it back!" - Soon, in this place!
1.1.2002: Included very interesting stuff from linuxgazette -Robos
18.11.2001: Had to move the thing I wrote about Xemacs to this place since I actually wrote something new and had to start some subgroups.
Last update: Thursday, 12-Nov-2009 12:21:34 CET
Comments, Errata? Contact robos!
Page counter: 8329