I am working on a new project, and the default character return for source code files is set to the DOS style. That gave Emacs some measles disease, filling the screen with bright red ^M
symbols. To investigate, I placed the cursor on ^M
, pressed Alt+X
, and ran describe-char
, which gave me the following information:
position: 5358 of 144784 (4%), column: 2
character: RET (displayed as RET) (codepoint 13, #o15, #xd)
charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x0D
script: latin
syntax: which means: whitespace
to input: type "C-x 8 RET d" or "C-x 8 RET CARRIAGE RETURN (CR)"
buffer code: #x0D
file code: #x0D (encoded by coding system utf-8-unix)
display: no font available
hardcoded face: escape-glyph
Character code properties: customize what to show
old-name: CARRIAGE RETURN (CR)
general-category: Cc (Other, Control)
There are text properties here:
font-lock-face magit-diff-added-highlight
keymap [Show]
magit-section [Show]
[back]
So, the escape-glyph
face was being used. Next, I typed customize-face
, searched for escape-glyph
, changed the color, and clicked on the Apply and Save
button.