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
0 votes
0 answers
29 views

Unpredictable Emacs echo area flashing on new message

Unpredictible Emacs echo area flashing on new message I am using my own fork of emacs-mini-modeline. It's a package that displays text message and modeline content in the echo area, to save space ...
godblessfq's user avatar
  • 1,217
0 votes
1 answer
51 views

Display emacs from linux (ubuntu) on Mac

I'm SSHing from my macbook into an ubuntu server. I have emacs installed in both places. So far I've found 3 ways to deal with this, and none of them are optimal: run emacs on the ubuntu in the ...
Brian Postow's user avatar
0 votes
0 answers
102 views

Emacs ignores display-fill-column-indicator-character settings

I have these settings in my init.el: (global-display-fill-column-indicator-mode 1) (setq-default fill-column 120) (setq-default display-fill-column-indicator t) (setq-default display-fill-column-...
Lai Yu-Hsuan's user avatar
0 votes
3 answers
74 views

Method separators

Does anybody know of a function/package/etc. to draw visual separators between "high-level" blocks of code, like class and function definitions? Similar to the horizontal lines in these ...
0x5453's user avatar
  • 329
1 vote
1 answer
73 views

emacs display layout for windows of bottom and right sides

With the following code, emacs split sides windows like: ;; ------------------------------------- ;; | | * | ;; | | h | ;; | ...
RNA's user avatar
  • 370
0 votes
0 answers
28 views

Font fallback breaks fixed-pitched grid

I'm looking for a way to achieve strict monospace alignment in Emacs, even when font fallback happens. There are various fallback fonts available for displaying icons in terminals, for example https://...
Zoltan's user avatar
  • 251
0 votes
1 answer
96 views

Adding some padding for LaTeX fragments in Org mode

When writing in Org mode, I have a minor pet peeve where the Org document becomes too "cramped", and so I like to add newlines separating the equations from the text, like this: * Very ...
daedsidog's user avatar
  • 157
1 vote
1 answer
46 views

How to set display margins for markdown-mode buffers?

Is there a way to set the display margins for markdown-mode buffers? I've read https://www.gnu.org/software/emacs/manual/html_node/elisp/Display-Margins.html and various suggested solutions but ...
jth's user avatar
  • 111
0 votes
0 answers
141 views

indentation and syntax highlighting stops working randomly

Every now and when emacs indentation and syntax highlighting stops working. This seems to affect all modes that I'm using (primarily org-mode,ess-mode and emacs-lisp-mode), and manifests itself in ...
swhalemwo's user avatar
1 vote
1 answer
643 views

font scaling on multiple monitors with different scalings

I have a 4k laptop display and dual 1920x1200 external monitors, one rotated vertically so emacs can have a million lines in view. Font scaling is set to 200% on the laptop display and 100% on the ...
Joe's user avatar
  • 13
1 vote
0 answers
59 views

Is there any way (built-in or not) to display a sub-tree as a top level tree when narrowed?

When I narrow to a subheading in emacs, I would love for it to be displayed as if it was the top level as opposed to it staying the level it actually is. For example consider this tree * Heading 1 ** ...
wychwitch's user avatar
0 votes
1 answer
86 views

Accents not rendering properly over greek letters in GUI mode

I noticed that (at the moment) accents are not properly positioned over Greek letters, for example the greek Letter pi (Unicode 03C0) with a combining circumflex accent (Unicode 0302) (used a lot in ...
swhalemwo's user avatar
3 votes
2 answers
312 views

Emacs Lisp to view text file like a table

I'd like to write a mode, or at least some Lisp functions, to view a tab-separated file like a table. What I mean is lines like this: foo\t123\tbar yabba dabba\t12345\treally long field here Should ...
Rob N's user avatar
  • 639
1 vote
1 answer
152 views

meaning of a red dot on border of window

This entry was created using org-capture and removing 'TODO'. I wonder why it shows a red dot in the lhs.
user avatar
1 vote
1 answer
62 views

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....
Dilna's user avatar
  • 1
0 votes
0 answers
30 views

ibuffer: how to wrap a column?

One of my ibuffer entries looks like this : Readme.txt<somepa... some_path_that_is_actually_super_duper_mega_giga_long_like_way_too_long/Readme.txt This spills over the fringe and I can't read ...
John Doe's user avatar
  • 169
0 votes
1 answer
32 views

How to remove the visual vertical bars for Python files?

I am using Emacs 27.2 on a Mac OS with Steve Purcell's configuration. I have got some visual vertical bars for Python files. How can they be removed?
zell's user avatar
  • 193
1 vote
3 answers
357 views

How to move the time and date displayed in the tab-bar a couple of character to the left

I would like to move the time and date displayed in the tab-bar a couple of characters to the left, so that the time is not completely on the edge of the screen. Here is the relevant code : (setq tab-...
Emperor_Udan's user avatar
1 vote
1 answer
265 views

word replacements with prettify-symbols-mode

I am writing a feature that changes the displaying of certain words as is done in texinfo-mode, where greek syntax \alpha is displayed as the actual greek symbol α. The implementation uses prettify-...
Dilna's user avatar
  • 1
1 vote
1 answer
248 views

RTL text with left alignment and reversed line wrapping in Org mode

Consider the following two files, identical but for the filename: $ md5sum emacs-test-file.txt emacs-test-file.org 43305dbeb954094f63709b2889fc8e02 emacs-test-file.txt ...
dotancohen's user avatar
1 vote
1 answer
146 views

Why an external monitor changes emac's frame text size?

I recently migrated to emacs 27 up from 24 (new machine running on Ubuntu 20.04, up from 16.04). When connecting (or unplugging) the laptop to an external monitor, emacs fails to adapt text size to ...
emagar's user avatar
  • 119
1 vote
2 answers
270 views

How to disable Emacs bidi?

I want to disable Emacs from ever displaying text right-to-left (i.e. ignore Unicode control sequences to change text orientation). How to do it?
vinipsmaker's user avatar
0 votes
0 answers
213 views

Buffer display issue with unicode characters on WSL2

I have a file with a single Unicode character in it: 🕯 (Unicode character CANDLE, codepoint 128367, #o372557, #x1f56f). When I open this file via emacs -Q and hit C-l, the display buffer has issues. ...
ponguile's user avatar
0 votes
1 answer
524 views

Getting R to Display Graphs in Emacs Window

There are some old threads asking about getting R to display its graphics in an emacs window (e.g. ESS plot directly to an Emacs buffer?) and the ESS manual says, 11.6.2 Using ESS with windowing ...
mikemtnbikes's user avatar
2 votes
1 answer
264 views

Characters in unicode-smp charset have no glyphs in Emacs 27.1, debian buster, using MesloLGS NF font

I'm using Gnu Emacs 27.1 GTK on Debian 10 from buster-backports. I'm also using the MesloLGS NF font that ships with zsh powerlevel10k, and has a heck of a lot of unicode characters. Nonetheless, ...
David Hanak's user avatar
2 votes
0 answers
269 views

How to scale toolbar on HiDPI (4K) display on Microsoft Windows?

My laptop display is 3840x2160 and has about a 15" diagonal. My setting to "Change the size of text and apps" is set to Windows's recommendation of 250%. The title bar, text in the ...
P.Hays's user avatar
  • 61
1 vote
0 answers
142 views

Why can't I create a full-width overlay and display in the margins at the same time?

I want to create an overlay (or, to avoid X-Y problems, a multicolored, multilayered, visually distinct line at an arbitrary position that cannot be removed, like a page-break) that spans the entire &...
tefkah's user avatar
  • 111
2 votes
1 answer
270 views

How can I display only current png and hide others in org-mode?

I have a lot of inline images and I want to disply only 1 in buffer and hide others while viewing. With M-x org-toggle-inline-images I can do this for the entire buffer, but it's too much for me. So, ...
Pfedj's user avatar
  • 338
0 votes
0 answers
2k views

WSL: emacs gui won't start

I'm on Windows 10 Pro 10.0.21337 (windows insider program) and installed WSL with Ubuntu 20.04. From within ubuntu I said apt-get update apt-get upgrade apt-get install emacs dpkg -l emacs -> ||/ ...
user829755's user avatar
0 votes
2 answers
160 views

Underline issue with Inconsolata font

I'm using Inconsolata font in emacs. The setting looks like (set-face-attribute 'default nil :font (font-spec :name "-*-Inconsolata-bold-italic-normal-*-*-*-*-*-m-0-iso10646-1" ...
Saddle Point's user avatar
1 vote
0 answers
79 views

Workaround bug#45038: 27.1; blank display

My setup: Emacs 27.1 under Ubuntu 20.04 from Kevin Kelley's PPA, and configured to use ligatures with the JetBrains Mono fonts, as described here. I experiencing Bug#45038 27.1; blank display, or ...
Chen Levy's user avatar
  • 385
2 votes
1 answer
1k views

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 ...
Damian Nadales's user avatar
4 votes
0 answers
90 views

How do you force the width of a fallback font to be the same as the one of the main font, assuming monospace fonts?

I use Emacs with monospace fonts, and I would like all the characters to have the same width, which is the purpose of monospace fonts. The issue is that the main font may not support all the ...
vinc17's user avatar
  • 183
0 votes
1 answer
99 views

Display Δ in the *Shell Command Output* Buffer

I have a shell command I'm running from Emacs that has a Δ character in its output. How can I configure the *Shell Command Output* buffer to display UTF-8 by default? edit: There could also be ...
Aido's user avatar
  • 175
1 vote
1 answer
245 views

How to print escaped characters with princ

When Emacs shows an integer value in the minibuffer, or as an output to IELM, it shows three representations of it -- octal, hex and as character: ELISP> 10 10 (#o12, #xa, ?\C-j) This is really ...
jcp's user avatar
  • 13
1 vote
0 answers
94 views

Is it possible to add visual padding around a character?

Is it possible to add visual padding around a variable width character (generally too, I suppose)? I've looked into using propertize and buffer-display-table to accomplish this, but every solution ...
theia-jane's user avatar
0 votes
0 answers
34 views

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 (...
Adam's user avatar
  • 1,897
1 vote
2 answers
93 views

Always show the last lines with a lower indentation than the first line that's visible in a window

I often find myself scrolling up in a code file to see which context I am in (class/method definition, yaml-key, etc). It would be super handy if I could somehow "freeze" the last lines of each ...
Max Hollmann's user avatar
1 vote
1 answer
127 views

Connect open and close delimiters with a line

I wonder if emacs has something similar to this VSCode extension (Bracket Pair Colorizer 2) which does the following (screenshot below) which I find is a really helpful UI enhancement [ In the above ...
Kai Windle's user avatar
1 vote
1 answer
253 views

Set Consistent line spacing, irrespective of bold or underlines etc

I current have set the current line number face to be bold: `(line-number-current-line ((,class (:foreground "#4F4F4F" :background "#00CC00" :bold t)))) When I move the cursor between lines, there ...
user avatar
1 vote
1 answer
232 views

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 ...
user avatar
4 votes
1 answer
873 views

Uneven line numbers with display-line-numbers

Emacs for some reason did not vacate equal spaces for each line number, So the lines were starting at different places which made it harder to keep track of alignment. It wasn't just the relative mode ...
sidharth arya's user avatar
0 votes
2 answers
869 views

Remove dollar sign at beginning of line

In emacs when I scroll right and beginning of lines are truncated emacs inserts dollar sign same as it insert \ at the end of truncated line. I wish it would not insert these two signs. Can I disable ...
Trismegistos's user avatar
8 votes
1 answer
5k views

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 ...
dylanjm's user avatar
  • 323
3 votes
0 answers
612 views

Adding Purpose to Layout Of Emacs

The rigidity to which emacs adheres to its layout is annoying at times. How can i get a layout like this when I shift to the particular modes? +------------------+-----------+ | | ...
Aviik's user avatar
  • 41
3 votes
2 answers
252 views

Move point inside of image overlay

I'm trying to create a realtime/WYSIWYG editor for LaTeX fragments -- the general idea is that at each move of point / edit of the fragment, the overlay should update to reflect the newly changed ...
Cardano's user avatar
  • 163
2 votes
1 answer
792 views

Replacing a string with symbols using font-lock?

I'm trying to make a font lock hook to replace strings of text for a mathmatical notation plugin. So I'm thinking " / " (note the spaces) will turn into " ÷ ", but "/" won't. (It's a package mainly ...
Chris's user avatar
  • 23
2 votes
1 answer
186 views

Fastest way to draw pixels in Emacs

I'm currently working on a CHIP-8 emulator. This platform requires me to draw 64x32 black/white pixels, ideally at a speed between 30 and 60 frames per second. There's an extension to it that ...
wasamasa's user avatar
  • 22.2k
1 vote
1 answer
90 views

How to display a character reversed?

I know about compose-region and have used it for other purposes, but am trying to figure out how to display a character reversed. like transforming c to ↄ. Is this possible?
Prgrm.celeritas's user avatar
2 votes
1 answer
114 views

Automatically toggle external display profile

Apologies I know this will seem pedestrian -- please forgive me, I'm a newbie. I have low vision, so I'd like to automatically toggle different "display profiles" based on whether there is an external ...
Karthik's user avatar
  • 43