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

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

RE: Emacs *-mode add-hook functions (not working>)


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.)



reply via email to

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