unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* set-buffer-major-mode: how to use on buffer without file?
@ 2021-03-25  7:53 Jean Louis
  2021-03-25 14:26 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Jean Louis @ 2021-03-25  7:53 UTC (permalink / raw)
  To: Help GNU Emacs

I would like to set major mode for the buffer which only displays a
revision in a buffer without associated file. The buffer name may end
with let us say .scm for scheme or .org for Org mode, I would like to
invoke the major mode based on the file extension.

Maybe `set-buffer-major-mode' is right function?

Or maybe some other?

Jean




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-25 15:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-25  7:53 set-buffer-major-mode: how to use on buffer without file? Jean Louis
2021-03-25 14:26 ` Stefan Monnier
2021-03-25 15:07   ` Jean Louis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).