# HG changeset patch # User Oleksandr Gavenko # Date 1584009456 -7200 # Node ID 61ea458154116536f17677f241d1cdd2ac5825c8 # Parent 1bf9e4f1d289591f568caa85ff24539fe54943c6 Set display-raw-bytes-as-hex for Emacs 26. diff -r 1bf9e4f1d289 -r 61ea45815411 .emacs-my --- a/.emacs-my Thu Mar 12 12:32:22 2020 +0200 +++ b/.emacs-my Thu Mar 12 12:37:36 2020 +0200 @@ -717,7 +717,10 @@ (setq read-quoted-char-radix 16) ;; https://emacs.stackexchange.com/questions/33117/showing-bytes-as-hexadecimal-escapes-rather-than-octal-escapes -(when (and (>= emacs-major-version 22) (not (eq system-type 'darwin))) +(cond + ((>= emacs-major-version 26) + (setq display-raw-bytes-as-hex t)) + ((and (>= emacs-major-version 22) (not (eq system-type 'darwin))) (setq standard-display-table (make-display-table)) (let ( (i ?\x80) hex hi low ) (while (<= i ?\xff) @@ -725,7 +728,7 @@ (cl-map 'vector (lambda (c) (make-glyph-code c 'escape-glyph)) (format "\\%02x" i))) - (setq i (1+ i))))) + (setq i (1+ i)))))) (defun my--get-char (name) "Get character by Unicode `name'."