3

In this example:

enter image description here

If I add for example '0.5' where the cursor is, instead of adding '0.5' while moving the remaining text to the right, Emacs will delete the part '}{ckt1}' while adding '0.5'. Is it possible to avoid it so that when the cursor is in that position and I type 0.5 the result be just '[width=0.5]{ckt1}'?

  • 2
    What you're describing is not normal behaviour. It should do what you want by default. Can you reproduce the problem after starting emacs with emacs -Q? – Tyler Dec 14 '17 at 18:54
4

Hit the <insert> key to toggle inserting vs overwriting.

C-h k <insert> tells you:

<insert> runs the command overwrite-mode, which is an interactive compiled Lisp function in simple.el.

It is bound to insertchar, insert.

(overwrite-mode &optional ARG)

Toggle Overwrite mode.

With a prefix argument ARG, enable Overwrite mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil.

When Overwrite mode is enabled, printing characters typed in replace existing text on a one-for-one basis, rather than pushing it to the right. At the end of a line, such characters extend the line. Before a tab, such characters insert until the tab is filled in. M-x quoted-insert still inserts characters in overwrite mode; this is supposed to make it easier to insert characters when necessary.

See the Emacs manual, node Minor Modes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.