help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting and Setting major-modes of buffers


From: Xah Lee
Subject: Re: Getting and Setting major-modes of buffers
Date: Thu, 17 Jan 2008 04:39:54 -0800 (PST)
User-agent: G2/1.0

On Jan 17, 3:45 am, "Nordlöw" <per.nord...@gmail.com> wrote:
> How do I determine the major-mode of a buffer (not necessarily the
> current) and make another buffer enter that same mode?

switch to that buffer, then
(symbol-value 'major-mode)

  Xah
  xah@xahlee.org
∑ http://xahlee.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]