[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting mode to a temporary buffer
From: |
Jean Louis |
Subject: |
Re: Setting mode to a temporary buffer |
Date: |
Thu, 25 Aug 2022 12:28:04 +0300 |
User-agent: |
Mutt/+ () (2022-06-11) |
* uzibalqa <uzibalqa@proton.me> [2022-08-25 09:33]:
>
> I am using the following function to write a message to a temporary buffer.
> To set the mode
> of the buffer I call (with-current-buffer bfname (org-mode)). Another
> alternative is to
> add (org-mode) after (pop-to-buffer bfname).
>
> switch-to-buffer uses pop-to-buffer under the hood. What is the way to do
> this? Use
> (pop-to-buffer bfname) followed by (org-mode)?
If it works, why not? Does it work?
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/