Questions tagged [display]
is for Emacs display features, which includes scrolling, fonts, colors, and placement of text or images.
113
questions
1
vote
3
answers
40
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-...
0
votes
0
answers
18
views
Remove line spacing from select lines
My buffer contains special lines of markup intended for semigraphics, such as box drawing, which need to be displayed without spacing. The default line spacing is controlled by the line-spacing frame ...
1
vote
1
answer
49
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
...
0
votes
1
answer
31
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 ...
1
vote
2
answers
110
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?
0
votes
0
answers
36
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. ...
0
votes
1
answer
90
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 ...
2
votes
1
answer
145
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, ...
1
vote
0
answers
53
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 ...
1
vote
0
answers
44
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 &...
1
vote
1
answer
62
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, ...
0
votes
0
answers
766
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
->
||/ ...
0
votes
2
answers
71
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"
...
1
vote
0
answers
69
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 ...
2
votes
1
answer
323
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 ...
3
votes
0
answers
60
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 ...
0
votes
1
answer
78
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 ...
1
vote
1
answer
81
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 ...
1
vote
0
answers
63
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 ...
0
votes
0
answers
28
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
(...
1
vote
2
answers
73
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 ...
1
vote
1
answer
75
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 ...
1
vote
1
answer
154
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 ...
1
vote
1
answer
143
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 ...
2
votes
1
answer
416
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 ...
0
votes
2
answers
460
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 ...
7
votes
1
answer
3k
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 ...
3
votes
0
answers
514
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?
+------------------+-----------+
| | ...
3
votes
2
answers
170
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 ...
2
votes
1
answer
552
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 ...
2
votes
1
answer
122
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 ...
1
vote
1
answer
86
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?
2
votes
1
answer
108
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 ...
1
vote
1
answer
150
views
Has Emacs same tool as "screen" in Linux? [closed]
Linux Ubuntu, Emacs 26.1
I use tool "screen" in Linux. It's very comfortable.
Has Emacs any some kind of tool?
2
votes
0
answers
75
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 ...
1
vote
1
answer
106
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 ...
1
vote
0
answers
437
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-...
3
votes
0
answers
116
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, ...
4
votes
1
answer
121
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 ...
4
votes
2
answers
1k
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 ...
11
votes
1
answer
2k
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 ...
2
votes
0
answers
716
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 ...
2
votes
1
answer
77
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:
;; ...
1
vote
1
answer
246
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 ...
4
votes
1
answer
389
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 ...
2
votes
0
answers
220
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 ...
1
vote
0
answers
552
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 ...
1
vote
1
answer
185
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 ...
1
vote
1
answer
159
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:
क का कि की कु कू के कै को कौ कं कः...
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?