|
From: | Kevin Rodgers |
Subject: | Re: Query Major Mode |
Date: | Thu, 21 Jul 2005 16:55:55 -0600 |
User-agent: | Mozilla Thunderbird 0.9 (X11/20041105) |
Tim Johnson wrote:
(defun previous-subroutine () (cond (eq major-mode "python")(previous-python-subroutine) (eq major-mode "C")(previous-C-subroutine) (eq major-mode "rebol")(previous-rebol-subroutine) ))
The value of major-mode is a symbol, e.g. python-mode. The value of mode-name is a string, e.g. "Python". -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |