Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!uunet!mcsun!ukc!harrier.ukc.ac.uk!gos.ukc.ac.uk!arc1 From: arc1@ukc.ac.uk (A.R.Curtis) Newsgroups: comp.editors Subject: Re: Emacs Message-ID: <2620@gos.ukc.ac.uk> Date: 27 Nov 89 09:52:32 GMT References: <3397@jhunix.HCF.JHU.EDU> Reply-To: arc1@ukc.ac.uk (A.R.Curtis) Organization: Computing Lab, University of Kent at Canterbury, UK. Lines: 43 In article <3397@jhunix.HCF.JHU.EDU> msc_wdqn@jhunix.HCF.JHU.EDU (Daniel Q Naiman) writes: > > 1. It seems like a pain to type ESC-X goto-line to move the cursor to > You can globally bind keys to functions using global-set-key This allows you to take a key sequence and use that key sequence to invoke one of the emacs lisp functions (either one supplied or even one or your own). Suppose you wanted to use C-x C-r for ``goto-line''. What you do is (global-set-key "\^x\^r" 'goto-line) > 2. In the manual to this wonderful PD Software it is indicated that ^^^^^^ Isn't it under the GNU manifesto rather than PD? (Anyone up-to-date with the exact definition?) Have a look in gnu.misc.discuss or gnu.announce, or the GNU manifesto and copying files supplied with GNU software. > global search and replace commands are not needed as often in emacs > as they are in other editors. Why is this? Am I missing some fundamental > principle? Again, is it possible to replace the command ESC-X > replace-string ... with a command with less keystrokes? > Exactly as above really. (global-set-key "\^c\^r" 'query-replace) to bind C-c C-r to query-replace (string). There is also a query-replace-regexp. The reason global substitutes aren't required (often) is that you can try out a substitution with query-replace and if it works Ok, then you can make it global, but if not then you can abort and undo any changes which occurred. The function documentation for query-replace will tell you how. Hope that helps. Tony Brought to you by Super Global Mega Corp .com