Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I insert (not overwrite) a byte in hexl-mode?

Tags:

emacs

hex

All of the hexl-insert- commands overwrite the byte at point. It makes no difference whether overwrite-mode is on.

I need to actually insert a new byte at point, moving everything else down.

How can I do this in emacs?

like image 265
harpo Avatar asked Jan 08 '13 14:01

harpo


1 Answers

You might prefer nhexl-mode, which lets you edit the file as if it was not hexlified (basically, the hexlification in nhexl-mode is done on-the-fly during redisplay), so you can insert/remove text without any difficulty.

like image 72
Stefan Avatar answered Oct 16 '22 14:10

Stefan