Questions tagged [hexl-mode]
13 questions
8
votes
2 answers
Make emacs automatically open binary files in hexl-mode
How can I make emacs automatically open binary files in hexl-mode? It's probably sufficient to define "binary" as "contains a null byte" (I suppose https://github.com/audreyr/binaryornot could be used if that ends up being an insufficient…

asmeurer
- 1,552
- 12
- 30
7
votes
2 answers
How to search for a sequence of bytes in hexl-mode?
Is it possible to search for a byte sequence in hexl-mode and possibly highlight it?
E.g. in the file below I want to search the byte sequence f9beb4d9. isearch does not work because it searches the presentation in the buffer and not the original…

gdkrmr
- 175
- 7
6
votes
1 answer
Batch loading binary files
I just discovered vlf-mode (View Large Files) and I am using it to view a large binary file in hexl-mode and read certain metadata from headers within the file. It works great, with one exception. When I move to another "batch" within the file,…

nispio
- 8,175
- 2
- 35
- 73
5
votes
3 answers
How can I convert hexidecimal values to base 10 in hexl-mode?
A nice feature of viewing binary files with hexl-mode is it displays the equivalent ASCII values to the right of your hexidecimal lines.
Is there a way to make hexl-mode treat hex values as floats, doubles, or some other format instead of ASCII? If…

holocronweaver
- 1,319
- 10
- 22
4
votes
2 answers
Enter hex numbers continuously in hexl-mode
In hexl-mode how can I make Emacs enter a state where it takes everything I enter as hex input until I tell it to stop? Eg. I want to tap "A", "B", "1", "0", etc., and have this entered as $AB, $10, etc. in the binary file, be able to cursor around,…

forthrin
- 451
- 2
- 10
3
votes
1 answer
Meaningful Copy/Paste in hexl-mode
Copy/Paste seems broken for hexl-mode, eg. M-w copies the hex tables to the clipboard, rather useless. Since hexl-mode has overwrite-mode by default, how can the following be implemented?
M-w should copy marked binary data to the clipboard
C-y…

forthrin
- 451
- 2
- 10
3
votes
1 answer
Hexl-mode with colors?
I have just been using Hexl-mode to investigate some binary files. What I would like though, is some way of highlighting the byte under consideration: at the moment the line and column indices are highlighted. It would be very helpful if the…

Alasdair McAndrew
- 143
- 3
2
votes
1 answer
Adjust columns in Hexl-Mode?
By default, it looks like hexl-mode shows 16-bytes per row as the column numbers range from 0x0 - 0xf.
Is there a way to adjust how many byte are displayed per row? E.g. 8-byes per row.

Joe
- 123
- 3
2
votes
2 answers
How to convert a single character to its hex value?
I have a character, e.g. O, and I want to convert it to its hexadecimal encoded value.
The result must be 4f.
How can I do this in Emacs 26.1?

a_subscriber
- 3,854
- 1
- 17
- 47
1
vote
1 answer
config hex mode to show data byte by byte
By default, the hexl mode will show binary data two bytes by two bytes as below:
00000000: 0000 0020 6674 7970 6973 6f6d 0000 0200 ... ftypisom....
Is it possible to change the style to show data byte by byte? just like below:
00000000: 00 00 00…

lucky1928
- 1,622
- 8
- 28
1
vote
2 answers
Moving forward / backward using a hexadecimal offset
There is hexl-forward-char which lets me move forward/backward specifying a decimal offset.
And there is also hexl-goto-hex-address to specify an absolute location using a hexadecimal number.
Is there perhaps also something builtin that lets me move…

Evgeniy Berezovsky
- 655
- 5
- 7
0
votes
1 answer
Is it Possible to automate file editing using emacs?
So what i am trying to achieve is the auto-editing of hex files. For example - The user enters a hex address, and the hex value to replace at that address. This change is to be applied to 10 different binary files
Can anyone point me in the…

TheArmKing
- 13
- 2
0
votes
2 answers
Can we just see the Hex code without preview in hexl-mode?
I would like to use the hexl-mode but without the ASCII characters printed on the right side as it is mostly gibberish and not a very helpful feature for me. Is there a way to achieve that?
For example:
00000000: 4672 6564 7269 636b 0000 0000 0000…

Nishant
- 239
- 1
- 9