[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Enabling mode for part of buffer / region
From: |
Drew Adams |
Subject: |
RE: Enabling mode for part of buffer / region |
Date: |
Thu, 23 Jan 2020 09:00:33 -0800 (PST) |
> 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?