Questions tagged [display]
is for Emacs display features, which includes scrolling, fonts, colors, and placement of text or images.
129
questions
0
votes
0
answers
29
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 ...
0
votes
0
answers
55
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-...
0
votes
3
answers
59
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 ...
1
vote
1
answer
35
views
emacs display layout for windows of bottom and right sides
With the following code, emacs split sides windows like:
;; -------------------------------------
;; | | * |
;; | | h |
;; | ...
0
votes
0
answers
22
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://...
0
votes
1
answer
71
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 ...
0
votes
1
answer
35
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 ...
0
votes
0
answers
67
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 ...
1
vote
1
answer
397
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 ...
1
vote
0
answers
57
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
** ...
0
votes
1
answer
60
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 ...
3
votes
2
answers
273
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 ...
1
vote
1
answer
128
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.
1
vote
1
answer
56
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....
0
votes
0
answers
29
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 ...
0
votes
1
answer
31
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?
1
vote
3
answers
292
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-...
1
vote
1
answer
218
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-...
1
vote
1
answer
218
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
...
1
vote
1
answer
127
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
217
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
168
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
416
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
243
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
225
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
119
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
212
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
1k
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
142
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
76
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
856
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 ...
4
votes
0
answers
85
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
97
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
228
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
86
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
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
(...
1
vote
2
answers
87
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
119
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
227
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
224
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 ...
4
votes
1
answer
798
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
789
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 ...
8
votes
1
answer
4k
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
586
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
239
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
729
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
171
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
89
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
111
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
177
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?