From: Drew Adams <drew.adams@oracle.com>
To: Michael Anckaert <michael.anckaert@sinax.be>, Help-gnu-emacs@gnu.org
Subject: RE: Enabling mode for part of buffer / region
Date: Thu, 23 Jan 2020 09:00:33 -0800 (PST) [thread overview]
Message-ID: <b655d034-8e4d-4398-8965-ed953a4f124e@default> (raw)
In-Reply-To: <87tv4mv5rg.fsf@winston.localdomain>
> Suppose I'm writing an email and would like to enable python-mode in
> the email, but only for a selected part.
> Is this possible in Emacs?
Please clarify just what you want to do.
If you are using Lisp code you can use
`save-restriction', narrow to the buffer portion
of interest, change the mode, etc. Perhaps that
is sufficient? What is it that you really want
to do?
next prev parent reply other threads:[~2020-01-23 17:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-23 10:14 Enabling mode for part of buffer / region Michael Anckaert
2020-01-23 17:00 ` Drew Adams [this message]
2020-01-23 19:33 ` Michael Anckaert
2020-01-23 19:38 ` Drew Adams
2020-01-24 10:49 ` Michael Anckaert
2020-01-24 11:16 ` tomas
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=b655d034-8e4d-4398-8965-ed953a4f124e@default \
--to=drew.adams@oracle.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=michael.anckaert@sinax.be \
/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.