From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: 3246251196ryan@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Emacs *-mode add-hook functions (not working>) Date: Tue, 11 Nov 2014 09:33:00 -0800 (PST) Message-ID: <217a486a-ca56-44b0-bafc-d50d9a0d992a@googlegroups.com> References: <83d28zrr8f.fsf@gnu.org> <13f9c811-a41d-446d-a795-932d95939a63@googlegroups.com> <2cd53f5b-d707-4362-b013-31afed98a96a@googlegroups.com> <538edd7a-8d2c-4d19-9edf-bb99871635df@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1415727325 28132 80.91.229.3 (11 Nov 2014 17:35:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2014 17:35:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 11 18:35:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XoFLb-0006Xe-06 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Nov 2014 18:35:19 +0100 Original-Received: from localhost ([::1]:50028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoFLa-0001As-LR for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Nov 2014 12:35:18 -0500 X-Received: by 10.182.70.69 with SMTP id k5mr31028820obu.2.1415727180198; Tue, 11 Nov 2014 09:33:00 -0800 (PST) X-Received: by 10.140.84.21 with SMTP id k21mr42664qgd.6.1415727180169; Tue, 11 Nov 2014 09:33:00 -0800 (PST) Original-Path: usenet.stanford.edu!r10no1504940igi.0!news-out.google.com!u1ni3qah.0!nntp.google.com!i13no880006qae.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.39.218.10; posting-account=yK8oPQoAAAA1qIT_h_OI91dtN6mGEacV Original-NNTP-Posting-Host: 194.39.218.10 User-Agent: G2/1.0 Injection-Date: Tue, 11 Nov 2014 17:33:00 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:208617 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100895 Archived-At: 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.