From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: how to load a minor-mode at startup Date: Sat, 03 Jan 2009 09:07:00 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1230998848 4175 80.91.229.12 (3 Jan 2009 16:07:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2009 16:07:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 03 17:08:37 2009 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.50) id 1LJ939-0007v9-Lt for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jan 2009 17:08:31 +0100 Original-Received: from localhost ([127.0.0.1]:58378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJ91u-0003AL-IC for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jan 2009 11:07:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJ91b-0003AG-RW for help-gnu-emacs@gnu.org; Sat, 03 Jan 2009 11:06:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJ91Z-0003A3-Ev for help-gnu-emacs@gnu.org; Sat, 03 Jan 2009 11:06:54 -0500 Original-Received: from [199.232.76.173] (port=56364 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJ91Z-0003A0-A3 for help-gnu-emacs@gnu.org; Sat, 03 Jan 2009 11:06:53 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:52908 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LJ91Y-0006OJ-Rs for help-gnu-emacs@gnu.org; Sat, 03 Jan 2009 11:06:53 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LJ91S-0007a5-3I for help-gnu-emacs@gnu.org; Sat, 03 Jan 2009 16:06:46 +0000 Original-Received: from c-67-161-145-183.hsd1.co.comcast.net ([67.161.145.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Jan 2009 16:06:46 +0000 Original-Received: from kevin.d.rodgers by c-67-161-145-183.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Jan 2009 16:06:46 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-161-145-183.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:61037 Archived-At: Aurélien Bottazini wrote: > I am an emacs beginner. > > I can't find a way to load one of my minor mode automatically. > It's whitespace-mode coming from whitespace.el. > > in my init.el I have put: > (require 'whitespace) > > I have tried to put after it something like > (whitespace-mode) > or (whitespace-mode t) but it does not work. > > I always have to activate whitespace-mode by hand with > M-x whitespace-mode What version of Emacs are you using? In Emacs 22.3, whitespace.el does not define a function called whitespace-mode. It does define a command called whitespace-global-mode, which sounds like what you want. -- Kevin Rodgers Denver, Colorado, USA