From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Custom function: Detect agenda mode Date: Tue, 20 Aug 2019 18:10:12 -0500 Message-ID: <87y2zn8mcr.fsf@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42216) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0DGk-00078K-0v for emacs-orgmode@gnu.org; Tue, 20 Aug 2019 19:10:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0DGj-00089G-5r for emacs-orgmode@gnu.org; Tue, 20 Aug 2019 19:10:25 -0400 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:45772 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i0DGi-00086K-Vv for emacs-orgmode@gnu.org; Tue, 20 Aug 2019 19:10:25 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1i0DGc-000huA-WB for emacs-orgmode@gnu.org; Wed, 21 Aug 2019 01:10:18 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Samuel Wales writes: > i do (eq major-mode 'org-agenda-mode) That works, but you should probably use: (derived-mode-p 'org-agenda-mode)