|
From: | Drew Adams |
Subject: | RE: Emacs *-mode add-hook functions (not working>) |
Date: | Mon, 10 Nov 2014 10:39:35 -0800 (PST) |
> (if (string= "c-mode" major-mode) I haven't followed this thread at all. But since `major-mode' has a symbol value, you can just use (eq 'c-mode major-mode) here. (And maybe you really want (derived-mode-p 'c-mode) instead - dunno.)
[Prev in Thread] | Current Thread | [Next in Thread] |