all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.