From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How can I enable minor mode, always? Date: Sat, 23 Oct 2010 08:15:55 -0700 Message-ID: References: <30023005.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287847092 25100 80.91.229.12 (23 Oct 2010 15:18:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Oct 2010 15:18:12 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: "'PJ Weisberg'" , "'paxxus'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 23 17:18:11 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P9frG-0007mD-HM for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Oct 2010 17:18:10 +0200 Original-Received: from localhost ([127.0.0.1]:50091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9frF-00074a-PT for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Oct 2010 11:18:09 -0400 Original-Received: from [140.186.70.92] (port=47914 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9fqo-00074P-Sl for Help-gnu-emacs@gnu.org; Sat, 23 Oct 2010 11:17:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9fqn-00061D-T6 for Help-gnu-emacs@gnu.org; Sat, 23 Oct 2010 11:17:42 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:39351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9fqn-00060c-Na for Help-gnu-emacs@gnu.org; Sat, 23 Oct 2010 11:17:41 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o9NFHaVi019926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 23 Oct 2010 15:17:38 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o9NFHZBW024423; Sat, 23 Oct 2010 15:17:36 GMT Original-Received: from abhmt021.oracle.com by acsmt354.oracle.com with ESMTP id 709679221287846960; Sat, 23 Oct 2010 08:16:00 -0700 Original-Received: from dradamslap1 (/10.159.35.73) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 23 Oct 2010 08:16:00 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: ActyouaksMemAbppQlujXuM138LSxQAIe/DQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75196 Archived-At: > > I have to manually enable it for each new buffer I open. > > How about adding something to after-change-major-mode-hook? Use the > add-hook function. Another suggestion: use `define-globalized-minor-mode' to define a global minor mode. `highlight-80+-mode' is apparently a local minor mode. Just pass it as the MODE arg to `define-globalized-minor-mode'.