Questions tagged [overwrite]
15 questions
6
votes
1 answer
Overwriting files in an emacs dired buffer using move or copy
When copying or moving a file/files in a dired buffer sometimes the file already exists in the location one is moving or copying to. Emacs then prompts the user and asks whether to "overwrite" the existing file or not. One is given these options:…

Edman
- 1,167
- 7
- 13
3
votes
1 answer
Prevent Emacs from overwriting text
In this example:
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…

João Pedro
- 185
- 6
3
votes
2 answers
Disable ido mode for write file
I was not the only one who thought ido is very inconvenient when trying to write a new file. The emacs wiki has a section dedicated to disabling ido for write-file:
Disable ido mode for particular commands, e.g. write-file
Their suggestion is to…

Snelephant
- 814
- 1
- 7
- 17
3
votes
0 answers
Overwrite selected text
Previously when I selected text and type something or insert from buffer, the selected text would get overwritten. Now it gets appended, apparently I've change some setting. What is it?

Oskar K.
- 278
- 1
- 7
2
votes
3 answers
Typing "eats" text on the right
Sometimes key binding changes unexpectedly such that if I position the cursor next to the first occurence of 'm'
lorem ipsum
and type 'xxxx', I get
loremxxxxum
instead of:
loremxxxx ipsum
Also, typing backspace replaced each character by a blank…
user19777
2
votes
0 answers
Redfining autoloaded function
I discovered that auctex's texmathp-match-switch does not check whether or not dollar signs are commented out or not, therefore i get wrong results when i all M-x `texmathp' in very specific contexts. So i wanted to redefine the function in a…

Lupino
- 121
- 3
2
votes
2 answers
How to overwrite properly a face for a particular theme
I use the monokai theme by default in my Emacs configurations. But sometimes I use other themes too, particularly light themes like leuven if the light in the room is more suitable for that. But I don't like the face that monokai uses for org-block…

joe di castro
- 370
- 3
- 12
1
vote
1 answer
How to overwrite protected files in dired
I was trying to copy my some of my config folders to another system which was mounted with root privileges using dired. I opened both surrounding folders using /sudo::/... and tried to copy my files from one to the other, putting again the…

Alexander Praehauser
- 155
- 7
1
vote
1 answer
What is the difference between writing and saving a file in Emacs?
What is the problem if I keep writing a file while editing it instead of saving it?
What exactly am I going to lose? Some sort of backup? Is this a "bad" practice?

Pedro Delfino
- 1,369
- 3
- 13
0
votes
0 answers
Slowly updating text appears to be in overwrite rather than insert mode--but isn't
I'm running emacsclient -nw and I notice sometimes the buffer appears to be in overwrite mode---I'll go to the beginning of a line and start typing, and when I do the existing text does not get pushed right. It looks like type-over.
However, if I…

Mittenchops
- 289
- 1
- 8
0
votes
1 answer
overwrite: Limit functionality based upon text-properties
In this example, there exists an editable text widget field as follows:
quantity: [______]
Adding certain custom text-properties -- 'overwrite t -- to the underscores between the square-brackets ______ seems to be the first step.
How can a user…

lawlist
- 18,826
- 5
- 37
- 118
0
votes
1 answer
Does Emacs have a standard function to insert or overwrite text depending of the state of overwrite-mode?
Context: using Emacs 26.2
I would like to write Emacs Lisp code that inserts or over-types text depending of the state of the overwrite-mode. I would call this function to insert text instead of the standard insert function. When code uses the…

PRouleau
- 744
- 3
- 10
0
votes
1 answer
How to overwrite by pasting a string without selecting a region?
I can't figure out how to paste a string, for example 145 characters long, into a text line in a way, that the next 145 characters after the string are overwritten by this string or simply erased.
An example with a 34 character string would be
| …

starquake
- 43
- 6
0
votes
2 answers
How can I more easily see interactively whether `overwrite-mode` is enabled?
I am sick of pressing Insert instead of Backspace and running into problems in certain modes.
How can I fix it?
One option is to have some visual indication that overwrite mode has been activated, so I can press Insert again and correct my mistake.

ruby_object
- 427
- 2
- 12
0
votes
1 answer
cursor color depending on insert or overwrite mode
how can I change the cursor color depending on insert or overwrite mode?
I looked at this page
https://www.emacswiki.org/emacs/ChangingCursorDynamically
and put as recommended 3 lines in the Emacs init file at the end of the custom-set-variables…

tamifo
- 1
- 1