Questions tagged [display]

is for Emacs display features, which includes scrolling, fonts, colors, and placement of text or images.

Tag refers to how text and other visual objects appear in Emacs. Emacs has many commands and settings that affect display. They are summarized in the manual. This includes highlighting, the fringe, whitespace, text wrapping, cursor and mouse-pointer appearance.

Some display features have their own tags, such as , , , , , , and .

127 questions
113
votes
9 answers

How can I get a ruler at column 80?

As a programmer, I want to see a ruler at a specific column (usually 80), both so I see when I cross that column, but also to see how close I am getting to it so I can reformat my code early. The options I have found so far are all not achieving…
Jorgen Schäfer
  • 3,899
  • 2
  • 17
  • 19
53
votes
2 answers

OTF ligature support in Emacs

PragmataPro is a typeface that comes with a number of programming ligatures. My understanding is that these are OpenType face (OTF) ligatures. I am aware that Emacs supports programmatic replacement of character combinations (for example -> to ⟶ or…
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
25
votes
1 answer

How do I set up font fallback in a robust way?

TL;DR: What's a simple way to reliably say: use Consolas as the default font, FreeMono for the characters unsupported by Consolas, and Symbola for characters unsupported by both? Since my main programming font does not cover all the mathematical…
Clément
  • 3,924
  • 1
  • 22
  • 37
14
votes
2 answers

How can I split paragraph into one-line-per-sentence but still keep it wrapped visually?

This is similar to Editing files with one-sentence-per-line (in function as well as motive), but I wish to have a full, flowing paragraph rather than visual breaks at every sentence. I would like to have a minor mode that, when active, will visually…
Sean Allred
  • 6,861
  • 16
  • 85
14
votes
2 answers

Align columns in Org mode table with Japanese fonts

How can I mix Japanese and English in the same org-mode table (that uses fixed-width fonts)? Something like: | m m m m m m | | | はどう デシウ | | | ハーフ | ハーフ | won't align. Emacs simply counts the Japanese characters as one,…
Quora Feans
  • 515
  • 3
  • 11
13
votes
1 answer

Org mode: is it possible to display ONLINE images?

Assuming I want to have an org buffer in which I can preview images from url which I don't want to store on my hard drive - is there a possibility to use a solution similar to org links and display images functions? I know I can use…
caseneuve
  • 397
  • 2
  • 11
12
votes
2 answers

How can I suppress emacs' cursor moving into the empty last line of a file?

One of vim's quirks is that it doesn't show an empty line at the end of a file if the file ends with the newline character. This way, if the file doesn't end with a newline, the display is the same, only with the [noeol] marker in the…
sykora
  • 269
  • 2
  • 10
10
votes
2 answers

Hide long GPL copyright notice at top of file

I am working with a lot of *cpp and *h files which contain a lengthy copyright notice at the beginning. I would like emacs to show these files as if this was not there, without actually removing the text. Thas is, this: /* * Copyright (C) 2006-2008…
Beginner
  • 2,661
  • 3
  • 17
  • 25
9
votes
4 answers

Showing bytes as hexadecimal escapes rather than octal escapes

Short version: Can I make Emacs show \ff or \xff instead of \377? Long version: Suppose you open a file that is not entirely text and has some binary data (say a PostScript or PDF file). For example, suppose you open GNU Emacs Reference Card…
ShreevatsaR
  • 880
  • 6
  • 19
9
votes
2 answers

Determine whether a frame is shown on primary display

I have a multi-monitor setup, in which a specific monitor has a dedicated Emacs frame in full screen which shows compiler errors (from Compilation Mode or SBT Mode). I'd like to preserve the setup automatically, even if I click on an error location…
user227
9
votes
4 answers

Show math formula in emacs when coding

Is it possible that emacs shows real formulas in the editor if they are written in Latex or similiar? I am asking because it would be much more readable if you are coding (in lets say python or C++) and the comments contain real formulas instead of…
Miguellissimo
  • 255
  • 2
  • 5
8
votes
1 answer

Prevent Emacs from resizing windows

After building a two column, 3 window layout with one tall column and two stacked equal sized shorter columns next to it, when I run commands like magit or ag that bring up a new buffer, often one of the shorter windows is resized so that it almost…
732
  • 181
  • 2
8
votes
1 answer

installing emacs: which x-toolkit?

I am installing Emacs 24.5.0, and I want to install it with X. I am on Fedora. the configuration script cannot find any x-toolkit. How do I find out which one is good for me, and in which folder do I find it? Somewhere I have read that the x-toolkit…
simona
  • 403
  • 2
  • 4
  • 7
7
votes
1 answer

How to set up Emacs to never split windows?

I want to try a new workflow where split windows only happen if I request them, otherwise Emacs simply changes windows. I tried putting this command in my init.el: (setq pop-up-windows nil) And it seems to work mostly: if I use a help command,…
gnuvince
  • 261
  • 1
  • 5
7
votes
1 answer

How to change line-number gutter width using display-line-numbers mode?

I am using (global-display-line-numbers-mode 1) in my init.el file and everything is working as expected. The only problem is that I find the gutter width to be too wide and would prefer it to match the size that's used when using (linum-mode 1). I…
dylanjm
  • 303
  • 2
  • 10
1
2 3
8 9