help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to load a minor-mode at startup


From: Ian Eure
Subject: Re: how to load a minor-mode at startup
Date: Tue, 30 Dec 2008 16:34:17 -0800

On Dec 30, 2008, at 9:13 AM, 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

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]