Re: How to enable overwrite mode?
"David A. Panariti" <[email protected]> Thu, 10 Nov 2005 22:18:26 -0500 (EST)
| Newsgroups | gmane.emacs.xemacs.general |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "alibeck" == alibeck <[email protected]> writes: alibeck> Hello list, alibeck> a quite simple question as I assume, however, I'm looking for an alibeck> answer ;-) alibeck> How can I enable in XEmacs an overwrite option for marked alibeck> regions, e.g. if I mark a word and just type in the new, it alibeck> shall automatically overwrite the old word. Look at `pending-delete-mode' (pending-delete-mode 1) ; should do it. There may be a way to get to it via menus or customize, but this will do it in your init.el alibeck> Also I want to enable to delete a marked region by pressing the alibeck> backspace or delete button on my keyboard. This may have been added to the regular distribution, but I've had this for years and it works fine: (defun dp-delete () "Delete the current region if mark is active, else the current character." (interactive "*") (if zmacs-region-active-p (delete-region (mark) (point)) (call-interactively 'delete-char))) Bind this to your desired key(s). alibeck> So, what must I do to get my XEmacs working like this. What must alibeck> I enter in my init.el? alibeck> I am running XEmacs 21.4.15 on Fedora Core 2. alibeck> Alexander -- / You know you're using the computer too much when: davep (|) you look at water you think, wow, nice pixel shading. / -- Satertek $