From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.help Subject: Re: how to load a minor-mode at startup Date: Tue, 30 Dec 2008 16:34:17 -0800 Message-ID: <6C4650EA-B9FF-4CA6-AE87-D9F4F12864E3@digg.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1230683694 14879 80.91.229.12 (31 Dec 2008 00:34:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 00:34:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?ISO-8859-1?Q?Aur=E9lien_Bottazini?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 31 01:36:03 2008 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 1LHp43-0000qc-MZ for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 01:35:59 +0100 Original-Received: from localhost ([127.0.0.1]:48864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHp2p-0002M6-QO for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Dec 2008 19:34:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LHp2V-0002M1-7Y for help-gnu-emacs@gnu.org; Tue, 30 Dec 2008 19:34:23 -0500 Original-Received: from [199.232.76.173] (port=60710 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHp2T-0002Lt-UL for help-gnu-emacs@gnu.org; Tue, 30 Dec 2008 19:34:21 -0500 Original-Received: from mail.digg.com ([64.191.203.36]:55917) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LHp2T-0000VT-Eu for help-gnu-emacs@gnu.org; Tue, 30 Dec 2008 19:34:21 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id A4C38A85059; Tue, 30 Dec 2008 16:34:20 -0800 (PST) X-Virus-Scanned: amavisd-new at X-Spam-Score: -4.514 Original-Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W6jpTcPwlytK; Tue, 30 Dec 2008 16:34:19 -0800 (PST) Original-Received: from [10.2.16.90] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id 74A6AA85049; Tue, 30 Dec 2008 16:34:19 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-detected-operating-system: by monty-python.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:60988 Archived-At: On Dec 30, 2008, at 9:13 AM, Aur=E9lien 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 > > I think there is a simple way to do it but I am missing it. > Can someone help me? > -- snip -- (whitespace-mode &optional arg) Toggle whitespace minor mode visualization ("ws" on modeline). If arg is null, toggle whitespace visualization. If arg is a number greater than zero, turn on visualization; otherwise, turn off visualization. Only useful with a windowing system. -- snip -- So what you want is: (whitespace-mode 1) - Ian=