Skip to main content

Questions tagged [display]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
79 views

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 ...
typesanitizer's user avatar
1 vote
1 answer
142 views

Making Emacs show the last part of bash-command output

I use the Evil mode inside Emacs for doing a lot of my work. If I need to run a shell-command and see its output all I need to do is type in normal mode :!<bash command>. The window splits into ...
smilingbuddha's user avatar
1 vote
0 answers
647 views

Adjusting to screen resolution changes on GNU/Linux/ubuntu/gnome

I'm running emacs 26.1 on ubuntu 18.04 on a Dell laptop with a high-resolution display. It works very well in that configuration. It also works very well when the laptop is plugged into a lower-...
Croad Langshan's user avatar
3 votes
0 answers
137 views

Calculate current-column including display properties

I am trying to calculate the width of text within either a buffer or a string after it has been displayed, i.e. after taking into account the width of any display properties, such as embedded images, ...
Basil's user avatar
  • 12.5k
4 votes
1 answer
162 views

Width of string as if it were displayed

From the documentation of string-width string: This function returns the width in columns of the string string, if it were displayed in the current buffer and the selected window. For me this ...
vonaka's user avatar
  • 171
4 votes
2 answers
2k views

How can I find non-displayable unicode characters in a buffer?

I mean these: I'd like to remove them, so I'm looking for a function which can find all these characters in the buffer which cannot be displayed properly with the current font and therefore show up ...
Tom's user avatar
  • 1,270
14 votes
2 answers
4k views

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 ...
caseneuve's user avatar
  • 407
3 votes
0 answers
941 views

Can't display images in org-mode

I am on MacOS High Sierra, iterm2; I cannot find how to display images in org-mode. My term supports image display as imgcat works well within my shell. When I try to open the image link in emacs it ...
Holzy Corp's user avatar
2 votes
1 answer
95 views

Preventing syntax highlighting in the wrap-prefix

When Emacs wraps long lines, is there a way to prevent the wrap prefix from having syntax highlighting (font-lock) or any such special properties? Specifically, I have the following settings: ;; ...
ShreevatsaR's user avatar
1 vote
1 answer
291 views

Weird TeX syntax highlighting issue

I running Emacs 25 on Debian 9.0 stretch. The version is 25.1+1-4+deb9u1. I have a local copy of AUCTeX installed via Melpa. The relevant line in M-x list-packages is: auctex 11.88.3 ...
Faheem Mitha's user avatar
4 votes
1 answer
448 views

Show included text inline, like with org-display-inline-images

Goal In org-mode, you can include parts of other files during export with the keyword #+INCLUDE. I would like to be able to view the included files in-line in the current buffer (and maybe even edit ...
Shon's user avatar
  • 157
2 votes
0 answers
269 views

Setting primary frame across displays on MacOS

I am working with 2 emacs frames, one on my laptop monitor (1) and the other on a larger external display (2). Whenever I switch between applications, e.g. between shell and Emacs, the Emacs cursor ...
patrick's user avatar
  • 123
2 votes
0 answers
647 views

How to use Org pretty math expressions with clipboard?

Using org-toggle-pretty-entities, org-mode will convert text like ∫_ℝ f(x)dx = 1 ∑^N_{i=1} x_i to But if I want to copy that text to an outside application, it just shows up as it was originally ...
George's user avatar
  • 919
1 vote
1 answer
251 views

How to put a right arrow above a Latin letter?

I want to write: ⃗E, I tried to C-x 8 <RET> COMBINING RIGHT ARROW ABOVE <RET> E it is displaying in Emacs like: I want to use Unicode (without Tex). EDIT in reply to Drew's comment: What ...
Ahmed Elsawy's user avatar
1 vote
1 answer
191 views

Display devanagari characters

Running Emacs 25 on Kubuntu 17.10. I am able to enter text in devanagari script but it does not dispaly correctly in the editor. For instance, the text entered as: क का कि की कु कू के कै को कौ कं कः...
deshmukh's user avatar
  • 1,912
1 vote
0 answers
25 views

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's user avatar
2 votes
2 answers
191 views

Longer flashing of search string during multi-file searches

When the cursor is in the *xref* buffer, following dired-do-find-regexp, the found string in the adjacent frame flashes, but too briefly, making it quite hard to see. A simple solution is to increase ...
Calaf's user avatar
  • 483
4 votes
1 answer
1k views

prettify-symbols-mode and multi-character replacements?

With prettify-symbols-mode it is possible to replace strings by a character, or a character composition, e.g. ;; \lambda → λ (push '("\\lambda" . ?λ) prettify-symbols-alist) Optionally, it allows ...
kdb's user avatar
  • 1,571
4 votes
1 answer
776 views

How can I eliminate the side effect of left margin?

I've set a left margin like this: (set-window-margins (get-buffer-window) 20 0) (let ((gutter-sep (concat (make-string (- (car (window-margins (get-buffer-window))) 2) ? ) "+"))) (propertize "." '...
Amos's user avatar
  • 466
3 votes
1 answer
302 views

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 ...
Erik Sjöstrand's user avatar
1 vote
1 answer
383 views

What is the mode or the command to selectively display selected region?

There seems to be a command to display only the text in the selected region, leaving the rest of the text hidden. What is the command?
dragon's user avatar
  • 23
8 votes
1 answer
853 views

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 ...
732's user avatar
  • 181
2 votes
1 answer
551 views

customize-face for display-graphic-p only

I run graphical GNU/Emacs on macOS and also emacs in Mac Terminal installed via Homebrew. I would like to customize the default face for only the graphical display. I used M-x customize-face default,...
mark's user avatar
  • 293
4 votes
3 answers
2k views

Hide mouse pointer while typing

Some programs, like many terminal emulators and gVim, hide the mouse pointer as soon as the keyboard is in use. Obviously, this is helpful when the mouse pointer happens to obscure some text behind it....
Amir's user avatar
  • 151
0 votes
2 answers
383 views

How to troubleshoot and diagnose escaped-character display errors in Emacs shell?

I make much use of sub-shells within Emacs (initiated via M-x shell), and, because of this, I run into problems like the one illustrated1 below way too often: $ python -m pdb /tmp/hello_world.py [2] ...
kjo's user avatar
  • 3,257
1 vote
1 answer
346 views

Possible to modify 'whitespace-display-mappings' at runtime?

Making changes to whitespace-display-mappings while emacs runs doesn't seem to do anything. (setq whitespace-display-mappings '( (space-mark 32 [183] [46]) ; middle-dot (tab-mark 9 [9654 9] [...
ideasman42's user avatar
  • 8,846
9 votes
4 answers
2k views

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, ...
ShreevatsaR's user avatar
6 votes
2 answers
338 views

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 ...
ideasman42's user avatar
  • 8,846
3 votes
1 answer
417 views

redraw-display when focused

I am using Emacs 25 in SUSE linux and when I switch to a workspace where Emacs is the front window almost none of the text is visible. I have to call redraw-display in order to get it refresh the ...
Prgrm.celeritas's user avatar
0 votes
1 answer
81 views

How do I display dashs as minus signs outside comments and strings?

In source code, I'd like to display “-” as “−”. In the font I use, the dash is very short and doesn't match the “+” at all. This is only to improve visual appearance. The character in the file must ...
Torsten Bronger's user avatar
5 votes
3 answers
1k views

Change fill-column-indicator rule color immediately

How can I change the color of the fill-column-indicator and have the changes visible immediately? (defun my:change-fci-color (color) (setq fci-rule-color color) (fci-redraw-frame)) The previous ...
Joe's user avatar
  • 1,332
7 votes
1 answer
5k views

your emacs does not come with xwidget support... (Windows 10)

Just unzipped and started using Emacs 25.1, hoping to get a browser running in emacs. The instructions I found had me enter "M-x xwidget-webkit-browse-url" And then I'm asked to complete a command ...
David J.'s user avatar
  • 163
1 vote
0 answers
93 views

Increase spacing between physical lines only

How can I add spacing where there are linebreaks in the file, but not where a line is word-wrapped? This would be very useful for reading log files with long lines. Here's a mockup of what I'm after: ...
Pkkm's user avatar
  • 263
0 votes
1 answer
550 views

utf-8 bullets displaying differently on different computers, same platform

I have two seemingly identical computers that display org-bullet utf-8 bullets differently within emacs. Both computers use the same OS (windows 7) and the same emacs version (24.5) with no ...
Snelephant's user avatar
4 votes
1 answer
937 views

Display max line in bottom line (nox) (aka mode-line)

How can I display the max line of a file in the bar at the bottom? So, how could it say "L1/L1300" instead of just "Top L1", if the respective happens to have 1300 lines?
miri sueß's user avatar
2 votes
1 answer
223 views

Change which buffers are in which windows?

I have 3 windows opened and I want to change which buffers they display. For example: when programming in C, I want to have the C code on the left, and the right side split into two windows showing ...
carl.if's user avatar
  • 21
2 votes
2 answers
1k views

Detect/specify the monitor a frame is on?

Q: how do I detect/specify the monitor a frame is on? I'm working off of a laptop that has an external monitor connected to it. I therefore have two monitors (call them INTERNAL and EXTERNAL). On ...
Dan's user avatar
  • 33.1k
2 votes
1 answer
608 views

X11 GUI low quality display when using server

Why is Emacs X11's display such bad quality, and how do I fix it? When I use Emacs Cocoa locally, I get a good visuals. But when I use the X11 forwarding on my department's server, the quality is ...
Alex Chitsazan's user avatar
5 votes
1 answer
4k views

Getting the full list of colors available in Emacs

When I run list-colors-display I get the following: which I think is a very small subset of colors that my Emacs supports, isn't it? For example, I know Emacs supports other colors (gray20, blue15, ...
Amelio Vazquez-Reina's user avatar
0 votes
1 answer
355 views

Draw a line between the header line and the text area

One of my modes uses the header line to display a progress bar/document summary, concatenating spaces with varying background colors and widths (using the display attribute). To clarify the ...
Clément's user avatar
  • 3,995
1 vote
1 answer
1k views

Gotham theme with 256 colors

When I use, gotham-theme, it says that you can get the 256 colors by (setq gotham-tty-extended-palette t) but I do not feel any difference between activating one and the other with only 16 colors; I ...
anquegi's user avatar
  • 749
5 votes
1 answer
551 views

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 ...
stackofpancakes's user avatar
2 votes
0 answers
60 views

How can I export compositions with html-fontify?

Prettify-symbols-mode is a very nice way to make source code more readable, especially in math-heavy languages. Unfortunately, exporting to HTML with html-fontify-buffer doesn't respect ...
Clément's user avatar
  • 3,995
3 votes
3 answers
1k views

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?...
codingquark's user avatar
14 votes
2 answers
1k views

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. ...
Quora Feans's user avatar
4 votes
2 answers
2k views

Disable color highlighting

Background: I use gnus under emacs -nw (so this question is about text-based usage, not the GUI). Depending on the value of the $TERM environment variable, gnus will, for example, highlight quoted ...
Keith Thompson's user avatar
3 votes
1 answer
2k views

how to modify the active region highlighting color

Gray text highlighting no longer works on my Debian/stretch system. While this is particularly annoying in Emacs, it's not a specific Emacs problem; gray background is also gone from other ...
Joachim W's user avatar
  • 145
2 votes
0 answers
462 views

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 ...
krystalcode's user avatar
4 votes
1 answer
1k views

Pop-up documentation with pos-tip or popup?

Is there a package to get a popup of the documentation for the thing at the point? Here's an example that flycheck uses.
Joe's user avatar
  • 1,332
5 votes
0 answers
94 views

How to replace a character display only for the `italic` face?

I am using a font that does not include italic characters. However, it does include characters like mathematical italic small a, which I would like to use instead. I can set up a display-table that ...
bastibe's user avatar
  • 487