9

When using Emacs 23 in a terminal with truncate-lines enabled Emacs adds a dollar sign to the end of each line, indicating the text continues past the edge of the screen. This bothers me and I would like to disable this feature or somehow hide the dollar sign. Is this possible? If so how would it be done?

Glyph at end of truncated line.

ideasman42
  • 42,413
  • 44
  • 197
  • 320
joshwbrick
  • 5,882
  • 9
  • 48
  • 72

2 Answers2

5

Try with this:

 (set-display-table-slot standard-display-table 0 ?\ ) 
angus
  • 2,305
  • 1
  • 15
  • 22
  • That's strange. How did you try it? – angus Dec 04 '11 at 00:53
  • 1
    It doesn't work for me, either (in the GUI)... but it does register a value of `32` in the 6th last entry in `standard-display-table` .. I"ve evaluated it via `C-x C-e`, and by putting it in my `.emacs` .. but with no effec on-screen either way. – Peter.O Dec 04 '11 at 12:24
  • Well, if some extension is creating its own per-window or per-buffer display table, then you'll probably need to hook the modification somewhere, and it gets much more complicated... – angus Dec 05 '11 at 19:29
-1

I think that's because whitespace-mode is activated, so you can either desactivated it with M-xwhitespace-modeRET or customize what should be displayed and how with M-xcustomize-groupRETwhitespaceRET and M-xcustomize-groupRETwhitespace-facesRET.

Daimrod
  • 4,902
  • 23
  • 25
  • 1
    This is actually different I think. The glyph I want to remove is not the newline mark from whitespace-mode, it is a glyph that comes from truncate-lines that indicates there is text to right or left of the visible screen area. I've already customized whitespace-mode to show a pilcrow for a new line character. Here is the Emacs manual page for truncate-lines where this dollar sign glyph is briefly mentioned. http://www.gnu.org/s/libtool/manual/emacs/Line-Truncation.html#Line-Truncation – joshwbrick Dec 04 '11 at 21:43
  • 1
    Oops you're right, it's because of `truncate-lines`, so you can either desactivate it with M-x `toggle-truncate-lines` RET and instead of a '$' at the end the line the line will just continue bellow, or you can enable `world-wrap` with M-x `toggle-truncate-lines` RET. – Daimrod Dec 05 '11 at 15:23