unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Keybinding to change Major Mode according to file type
@ 2020-09-21  7:42 Christopher Dimech
  2020-09-21  8:35 ` Marcin Borkowski
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Dimech @ 2020-09-21  7:42 UTC (permalink / raw)
  To: Help Gnu Emacs

Can one use keybinding such as f2 loads the bluffer in Major Mode dependent on the file type.

Example:


If I have a .texi file in whicn I have changed the major mode with 'M-x org-mode'

I want to press f2 to it will check the file, in my case .texi and change
to major mode as though I keyed 'M-x texinfo-mode'





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

end of thread, other threads:[~2020-09-21  8:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-21  7:42 Keybinding to change Major Mode according to file type Christopher Dimech
2020-09-21  8:35 ` Marcin Borkowski

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).