Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [margins]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
49 views

clickable buttons on headings

Emacs shows clickable buttons when visiting NEWS (C-h n): This is controlled by outline-minor-mode-use-buttons. How to make Org do the same thing?
shynur's user avatar
  • 5,328
1 vote
1 answer
52 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
1 answer
59 views

How do I specify the left and right margins of buffers at a percentage, not a fixed value?

I want to mainly margin only the left side, for example, to set the left margin to about 30% of the total width and 5% on the right side. I'm using olivetti now but this package doesn't seem to be ...
roomworoof's user avatar
5 votes
0 answers
232 views

Can word-wrap / visual-line-mode have different right margins per paragraph?

When visual-line mode is enabled, words wrap at the window edge. When the window is wide, this makes much too long of a line for comfortable reading. To fix that I have found visual-fill-column-mode, ...
crowding's user avatar
  • 190
1 vote
0 answers
143 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
3 votes
2 answers
1k views

Setting a default page margin for org latex export

So far, I have set org-latex-packages-alist to '(("margin=2cm" "geometry")), but if the geometry-package is explicitly loaded in a document, I get a clash. I can use \newgeometry{...
xeruf's user avatar
  • 354
3 votes
0 answers
437 views

Prevent Emacs from scrolling past the last line

Obviously Emacs never scrolls "above" the first line of the buffer. By contrast, it shows a bunch of empty space after the document if you scroll to the last line: I want to make the bottom ...
Andrii Kozytskyi's user avatar
0 votes
1 answer
35 views

mouse click in margins to move point (gui macos) rather than error?

Currently, I have text modes configured with wide margins for readability with (defun text-margins () (setq left-margin-width 16) (setq right-margin-width 16)) (add-hook 'text-mode-hook 'text-...
Paul Gowder's user avatar
2 votes
1 answer
40 views

Left margin grows while typing

My buffer slips to the right while editing a file. Whenever I press a button, left margin area grows one character. This isn't happening for all files. My buffer normally looks like this: line with ...
kurtfu's user avatar
  • 151
1 vote
0 answers
35 views

Evil commands reset margin

I'm using evil-mode and olivetti-mode, which adjusts the margins so that the text is centered in the window. My screen usually looks like this: Voluptatem tempore unde eveniet cumque ...
Moira Jones's user avatar
2 votes
0 answers
1k views

Adding padding between the fringe and the text

How can I add padding between the right side of the fringe and the left side of my code? I have tried using (set-window-margins nil 1) but the margin is on the left side of the fringe. I'd like to ...
Florent's user avatar
  • 121
1 vote
0 answers
337 views

Setting margins in `text-mode`

I use text files for most of my work. But for printing them on letterhead, I need to set margins to say 3 cm for upper margin and 2.5 cm for lower. Is there any way I can define them in text-mode. ...
Vaibhav's user avatar
  • 583