From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: paxxus Newsgroups: gmane.emacs.help Subject: Re: How can I enable minor mode, always? Date: Tue, 26 Oct 2010 16:49:41 -0700 (PDT) Message-ID: <30062842.post@talk.nabble.com> 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 1288137035 32648 80.91.229.12 (26 Oct 2010 23:50:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2010 23:50:35 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 27 01:50:34 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 1PAtHa-0005gc-5w for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 01:50:33 +0200 Original-Received: from localhost ([127.0.0.1]:59614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAtHR-0005uB-DP for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2010 19:50:13 -0400 Original-Received: from [140.186.70.92] (port=55001 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAtH1-0005tC-Pp for Help-gnu-emacs@gnu.org; Tue, 26 Oct 2010 19:49:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAtGw-0001qi-Q3 for Help-gnu-emacs@gnu.org; Tue, 26 Oct 2010 19:49:47 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:53946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAtGw-0001qe-LL for Help-gnu-emacs@gnu.org; Tue, 26 Oct 2010 19:49:42 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1PAtGv-00068y-EK for Help-gnu-emacs@gnu.org; Tue, 26 Oct 2010 16:49:41 -0700 In-Reply-To: <30023005.post@talk.nabble.com> X-Nabble-From: paxxus@hotmail.com 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:75243 Archived-At: Thanks for the suggestions. I used fundamental-mode, always. It turns out that you can't add hooks to that mode, so I changed my default mode to text-mode, and then added this hook: (add-hook 'text-mode-hook (lambda () (interactive) (highlight-80+-mode 1))) The define-globalized-minor-mode also looks interesting, I'll try that out. I have now worked a couple of days in text-mode instead of fundamental-mode, and I can't detect any difference at all (which is good for what I want). Is there a difference other than the hook stuff? -- View this message in context: http://old.nabble.com/How-can-I-enable-minor-mode%2C-always--tp30023005p30062842.html Sent from the Emacs - Help mailing list archive at Nabble.com.