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 .

130 questions
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,711
  • 3
  • 18
  • 25
7
votes
1 answer

How to force the current line to be always in the middle of the screen

I am editing a large file. I would like the current line where the cursor is at to be always in the middle of the screen. Is this possible?
Name
  • 7,849
  • 4
  • 41
  • 87
6
votes
2 answers

How to display whole words as a different symbol?

In this video (time-linked, only a few seconds) the word function is displayed as f, but can still be edited so the underlying text remains as-is. How can this be done in emacs? (using plugins or built in features).
ideasman42
  • 8,786
  • 1
  • 32
  • 114
5
votes
1 answer

Everytime I open emacs with -nw my file is prepended with 0;276;0c. My screen realestate is also being cut in half

How can I reset the default behavior of no prepending (but still being able to use -nw) and not having the bottom half of my terminal be black space. Having emacs test.py -nw -Q doesn't solve the issue, emacs test.py -Q doesn't result in the…
3
votes
1 answer

Stop Emacs from updating display

Sometimes a function will make the display blink and stutter, due do things happening in the background while the function is running (visiting other buffers etc). Does anyone know if there's a function, or another way, to tell Emacs not to…
Erik Sjöstrand
  • 826
  • 4
  • 15
3
votes
3 answers

Increase line-spacing on top

line-spacing adds space at the bottom. Here is what I mean - Image link. The docs say that the space is added below lines of graphic displays. I want the space to be added at the top. How do I do that?
2
votes
1 answer

How to get the display dimensions of the display emacs is in?

I tried querying the display width using: (display-pixel-width) however this reports the pixel width of my external monitor instead of the laptop's display, where emacs is. Is there a way to show the information of the display where emacs currently…
2
votes
0 answers

Is it possible to have buffers in layers?

In Emacs, can you get something like the following: 10 |int foo() { 11 | int a = bar(); 12 | 30 |int bar() { 13 | 31 | return 10; 14 | 32 |} 15 | // Bar.h // Foo.c The idea is that instead of going to the definition, the definition is…
typesanitizer
  • 271
  • 2
  • 8
2
votes
0 answers

Issue with characters in buffers being displayed in wrong positions

I work with Emacs within Docker as my dev environment so that I can have clean dev environments per language or type or projects that I do e.g. PHP dev, NodeJS dev, Haskell dev etc with different software or extensions installed etc. Since upgrading…
krystalcode
  • 219
  • 1
  • 7
1
vote
1 answer

How to show CamelCase names as hyphened or underscored names?

I have some complicated code with variables that use CamelCase. Would it be possible to display such variables with a hyphen (-) or underscore (_), but without modifying the actual text in the buffer. Change would be just for display.
Dilna
  • 1
  • 3
  • 11
1
vote
1 answer

Disable coloring of text in operations in emacs -nw, during operations like searching

I'm using gnu emacs as emacs -nw in a terminal window. Colored text is usually almost completely illegible for me. As recommended in this answer, I have done the following in an attempt to get rid of all coloring: (dolist (face (face-list)) …
user5457
1
vote
1 answer

Has Emacs same tool as "screen" in Linux?

Linux Ubuntu, Emacs 26.1 I use tool "screen" in Linux. It's very comfortable. Has Emacs any some kind of tool?
a_subscriber
  • 4,062
  • 1
  • 18
  • 56
1
vote
0 answers

Can I display a character as if rotated?

Suppose that I'd want to display a character as if rotated by 90 or 180 degrees in Emacs. Is there a way to go about that?
Caterpillar
  • 274
  • 1
  • 9
0
votes
0 answers

Incorrect pixel count returned on retina display

I am running Emacs 26.3 on a 15" MacBook Pro with Retina display. While Emacs renders razor sharp on my screen, it does not seem to be aware of my correct pixel count. E.g., #+BEGIN_SRC emacs-lisp (concat (number-to-string…
Adam
  • 1,897
  • 12
  • 32
0
votes
1 answer

If I insert text before playing a sound, why do I not see the text inserted until the sound finishes?

I'm trying to, in a buffer, insert some text, then play a sound. Sample code is as follows: (progn (insert "this won't be inserted until after the sound") (play-sound '(sound :file…
zck
  • 9,092
  • 2
  • 33
  • 65