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: 3246251196ryan
Subject: Re: Emacs *-mode add-hook functions (not working>)
Date: Tue, 11 Nov 2014 09:33:00 -0800 (PST)
User-agent: G2/1.0

On Monday, 10 November 2014 18:40:01 UTC, Drew Adams  wrote:
> > (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.)

Cheers Drew I will try those out.


reply via email to

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