5 votes
Accepted

Prevent Emacs from overwriting text

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 ...
user avatar
  • 69.2k
3 votes
Accepted

How to overwrite properly a face for a particular theme

Well, finally I have a working solution, actually it was so obvious that I don't understand why it took me so long to find out. The answer is to use my previous solution that make use of the custom ...
user avatar
3 votes
Accepted

What is the difference between writing and saving a file in Emacs?

The source for write-file is available. As of May 2021, it does some checks (e.g., to make sure the location being saved to isn't a directory, see if a file is being overwritten), then calls save-...
user avatar
  • 8,536
3 votes
Accepted

Overwriting files in an emacs dired buffer using move or copy

OK, I've just updated Dired+ to help with this. Now, when you're told there is an overwrite conflict and asked what to do about it, in addition to the standard actions of hitting y, n, q or ! , you ...
user avatar
  • 69.2k
1 vote
Accepted

overwrite: Limit functionality based upon text-properties

There are some packages that do similar things -- however, none that are based on text properties. In org-mode you can edit table fields, while the tables themselves stay in place. In my package ...
user avatar
  • 5,735
1 vote

Does Emacs have a standard function to insert or overwrite text depending of the state of overwrite-mode?

The answer is almost yes. self-insert-command is the command that is run for those keys that simply insert a character into the current buffer, and it handles overwrite correctly (and it handles the ...
user avatar
  • 11.3k
1 vote

How to overwrite by pasting a string without selecting a region?

You can write (defun overwriting-yank () "Like `yank` but overwrites the corresponding text." (interactive) (let ((txt (current-kill 0))) (insert-for-yank txt) (delete-char (...
user avatar
  • 25.2k
1 vote

How can I more easily see interactively whether `overwrite-mode` is enabled?

If it is the position of the key that is the problem, then you can unbind the key so that it does not enable overwrite-mode any longer: (global-set-key (kbd "<insert>") nil) If you ...
user avatar
  • 19.6k
1 vote

Disable ido mode for write file

Use C-x C-f C-f to bypass ido-mode when it gets in the way. To "save as", same: C-x C-w C-w but this time you stay in ido-mode, only you can edit the prompt.
user avatar
  • 821
1 vote
Accepted

Disable ido mode for write file

the following should work. (require 'ido) (ido-mode) (define-key (cdr ido-minor-mode-map-entry) [remap write-file] nil) the problem was caused by ido not initialized. Need the (ido-mode) line there.
user avatar
  • 1,706

Only top scored, non community-wiki answers of a minimum length are eligible