[Mageia-discuss] emacs text selection

Gilberto F da Silva gfs1989.listas at gmx.net
Tue Mar 22 02:43:52 CET 2011

Hash: SHA1

On Mon, Mar 21, 2011 at 09:33:24PM +0100, Juergen Harms wrote:
> Preparing to change distros - go to Mageia - I am reviewing some of
> my "laziness based habits" and try to migrate from xemacs to emacs.
> No fundamental problem, but I hit a weird aspect:
> When, in emacs, I select a region of text and than type a character,
> I expect (and have the habit) that the newly typed character would
> replace the entire selected region: no, when the character is typed,
> emacs de-selects the region and inserts the character (i.e. appends
> it) after the region.
> Is this a known and accepted particular aspect of emacs (practically
> all other text editors I know replace a selected the region when new
> text is typed)? is there a standard way in emacs to configure emacs
> to "behave" as expected? if not, are there established key bindings
> which allow to make emacs behave like other editors?

  Put in your .emacs file This line:

(delete-selection-mode 1)

                       I found this solution here:

- -- 
Gilberto F da Silva - gfs1989 at gmx.net - ICQ 136.782.571
Stela dato:2.455.642,528  Loka tempo:2011-03-21 22:40:07 Lundo 
- -==-
"Se existisse um Deus bondoso e todo-poderoso, teria feito 
exclusivamente o bem".
                -- Mark Twain
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: +---------------------------------------+
Comment: ! Gilberto F da Silva - ICQ 136.782.571 !
Comment: ! msn gfs1989 at gmx.net  -  yahoo gfs1989 !
Comment: +---------------------------------------+


More information about the Mageia-discuss mailing list