Skip to main content
Changed to clear up questions someone brought up
Source Link
PatS
  • 155
  • 6

In GNU Emacs 27.2 is there a way to change the text font size of a single buffer without changing all frames that are displayingopen instances of that buffer (in different frames)?

In my version of emacs, when I use Ctrl+MouseWheel up/down it enlarges the font or reduces the font size for the current buffer. But it also changes all frames that are displayinginstances of the current buffer.

(Q) Is there a way to change the font size of a buffer just in a the current frame? If I have other frames displaying I'm interested in just instance of the buffer, I don't want them (in one frame) to resize as wellbe resized.

What I've tried

Searching I found SO question/answer

Is it possible to change the font size in specific buffers? Which is good but it changes all of the buffer instances on all frames. Basically, I already havelooked for a solution to my question and found this working with Ctrl+MouseWheel up/down

Searching - I searched for the zoom-in/out feature:

Atarticle which indicates that the feature I'm looking for is not supported. See https://www.emacswiki.org/emacs/SetFonts it says:

You can resize (text-scale) the text in a buffer (in all windows showing it), or you can resize the default font of a frame.

But I haven't been able to get it to workalso found this question/answer:

Is it possible to change the font size in specific buffers? This explains how a buffer's text can be resized in all frames (yetthat have the buffer open). Basically, I already have this working with Ctrl+MouseWheel up/down.

Why?

Why do I want to do this? you might ask. I have a daily notes file in which I use emacs outline mode. I'll put (in some cases) a large (100+ lines) of a log file for my records and easy grep'ing for problems in the future. The outline mode makes it trivial to collapse a large log so I can focus on my notes.

However, when I'm studying a log file I want smaller font; so I want one frame for notes and a separate frame for studying a log file.

In GNU Emacs 27.2 is there a way to change the font size of a buffer without changing all frames that are displaying that buffer?

In my version of emacs, when I use Ctrl+MouseWheel up/down it enlarges the font or reduces the font for the current buffer. But it also changes all frames that are displaying the buffer.

(Q) Is there a way to change the font size of a buffer just in a the current frame? If I have other frames displaying the buffer, I don't want them to resize as well.

What I've tried

Searching I found SO question/answer

Is it possible to change the font size in specific buffers? Which is good but it changes all of the buffer instances on all frames. Basically, I already have this working with Ctrl+MouseWheel up/down

Searching - I searched for the zoom-in/out feature:

At https://www.emacswiki.org/emacs/SetFonts it says:

You can resize (text-scale) the text in a buffer (in all windows showing it), or you can resize the default font of a frame.

But I haven't been able to get it to work (yet).

Why?

Why do I want to do this? you might ask. I have a daily notes file in which I use emacs outline mode. I'll put (in some cases) a large (100+ lines) of a log file for my records and easy grep'ing for problems in the future. The outline mode makes it trivial to collapse a large log so I can focus on my notes.

However, when I'm studying a log file I want smaller font; so I want one frame for notes and a separate frame for studying a log file.

In GNU Emacs 27.2 is there a way to change the text font size of a single buffer without changing all open instances of that buffer (in different frames)?

In my version of emacs, when I use Ctrl+MouseWheel up/down it enlarges or reduces the font size for all instances of the current buffer. I'm interested in just instance of the buffer (in one frame) to be resized.

What I've tried

Searching I found SO question/answer

I looked for a solution to my question and found this article which indicates that the feature I'm looking for is not supported. See https://www.emacswiki.org/emacs/SetFonts it says:

You can resize (text-scale) the text in a buffer (in all windows showing it), or you can resize the default font of a frame.

I also found this question/answer:

Is it possible to change the font size in specific buffers? This explains how a buffer's text can be resized in all frames (that have the buffer open). Basically, I already have this working with Ctrl+MouseWheel up/down.

Why?

Why do I want to do this? you might ask. I have a daily notes file in which I use emacs outline mode. I'll put (in some cases) a large (100+ lines) of a log file for my records and easy grep'ing for problems in the future. The outline mode makes it trivial to collapse a large log so I can focus on my notes.

However, when I'm studying a log file I want smaller font; so I want one frame for notes and a separate frame for studying a log file.

Source Link
PatS
  • 155
  • 6

Change font size for buffer in a single frame (ideally zoom in/out using key or mousewheel)

In GNU Emacs 27.2 is there a way to change the font size of a buffer without changing all frames that are displaying that buffer?

In my version of emacs, when I use Ctrl+MouseWheel up/down it enlarges the font or reduces the font for the current buffer. But it also changes all frames that are displaying the buffer.

(Q) Is there a way to change the font size of a buffer just in a the current frame? If I have other frames displaying the buffer, I don't want them to resize as well.

What I've tried

Searching I found SO question/answer

Is it possible to change the font size in specific buffers? Which is good but it changes all of the buffer instances on all frames. Basically, I already have this working with Ctrl+MouseWheel up/down

Searching - I searched for the zoom-in/out feature:

At https://www.emacswiki.org/emacs/SetFonts it says:

You can resize (text-scale) the text in a buffer (in all windows showing it), or you can resize the default font of a frame.

But I haven't been able to get it to work (yet).

Why?

Why do I want to do this? you might ask. I have a daily notes file in which I use emacs outline mode. I'll put (in some cases) a large (100+ lines) of a log file for my records and easy grep'ing for problems in the future. The outline mode makes it trivial to collapse a large log so I can focus on my notes.

However, when I'm studying a log file I want smaller font; so I want one frame for notes and a separate frame for studying a log file.