all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Keybinding to change Major Mode according to file type
Date: Mon, 21 Sep 2020 09:42:37 +0200	[thread overview]
Message-ID: <trinity-a772d963-7d82-4bff-90bf-e4d5e8df66b6-1600674157478@3c-app-mailcom-bs09> (raw)

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'





             reply	other threads:[~2020-09-21  7:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-21  7:42 Christopher Dimech [this message]
2020-09-21  8:35 ` Keybinding to change Major Mode according to file type Marcin Borkowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-a772d963-7d82-4bff-90bf-e4d5e8df66b6-1600674157478@3c-app-mailcom-bs09 \
    --to=dimech@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.