all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* whitespace
@ 2009-01-26 15:45 Tomer
  2009-01-26 16:14 ` whitespace Teemu Likonen
  0 siblings, 1 reply; 5+ messages in thread
From: Tomer @ 2009-01-26 15:45 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
I'm trying to get emacs (22.2.1, fedora) to show whitespaces (space,
tab, eol). I've followed the instructions - several times, I must say
- here:
http://www.emacswiki.org/emacs/WhiteSpace
But I still can't get emacs to display those characters.

Does anybody know of a problem with this feature?

Thanks,
Tomer


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: whitespace
  2009-01-26 15:45 whitespace Tomer
@ 2009-01-26 16:14 ` Teemu Likonen
  2009-01-26 16:28   ` whitespace Tomer
  0 siblings, 1 reply; 5+ messages in thread
From: Teemu Likonen @ 2009-01-26 16:14 UTC (permalink / raw)
  To: help-gnu-emacs

Tomer (2009-01-26 07:45 -0800) wrote:

> I'm trying to get emacs (22.2.1, fedora) to show whitespaces (space,
> tab, eol). I've followed the instructions - several times, I must say
> - here:
> http://www.emacswiki.org/emacs/WhiteSpace
> But I still can't get emacs to display those characters.
>
> Does anybody know of a problem with this feature?

Here it works nicely with this general form of configuring external
features:

 1. Put the file to some directory where you want to keep your local
    elisp extensions. It can be anywhere but in this example I'll use
    the location ~/my-lisp/whitespace.el

 2. Add the directory to "load-path" variable. That is, put this line in
    your ~/.emacs file:

        (add-to-list 'load-path "~/my-lisp")

 3. Add autoload definitions to your ~/.emacs file:

        (autoload 'whitespace-mode "whitespace"
          "Toggle whitespace visualization." t)
        (autoload 'whitespace-toggle-options "whitespace"
          "Toggle local `whitespace-mode' options." t)

After evaluating the previous elisp expressions (or after restarting
Emacs) you have the new mode ready to use: "M-x whitespace-mode".

This mode is distributed with Emacs 23 so when/if you later upgrade your
Emacs you can just forget about all these.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: whitespace
  2009-01-26 16:14 ` whitespace Teemu Likonen
@ 2009-01-26 16:28   ` Tomer
  2009-01-26 16:44     ` whitespace Teemu Likonen
  0 siblings, 1 reply; 5+ messages in thread
From: Tomer @ 2009-01-26 16:28 UTC (permalink / raw)
  To: help-gnu-emacs

On Jan 26, 6:14 pm, Teemu Likonen <tliko...@iki.fi> wrote:
> Tomer (2009-01-26 07:45 -0800) wrote:
>
> > I'm trying to get emacs (22.2.1, fedora) to show whitespaces (space,
> > tab, eol). I've followed the instructions - several times, I must say
> > - here:
> >http://www.emacswiki.org/emacs/WhiteSpace
> > But I still can't get emacs to display those characters.
>
> > Does anybody know of a problem with this feature?
>
> Here it works nicely with this general form of configuring external
> features:
>
>  1. Put the file to some directory where you want to keep your local
>     elisp extensions. It can be anywhere but in this example I'll use
>     the location ~/my-lisp/whitespace.el
>
>  2. Add the directory to "load-path" variable. That is, put this line in
>     your ~/.emacs file:
>
>         (add-to-list 'load-path "~/my-lisp")
>
>  3. Add autoload definitions to your ~/.emacs file:
>
>         (autoload 'whitespace-mode "whitespace"
>           "Toggle whitespace visualization." t)
>         (autoload 'whitespace-toggle-options "whitespace"
>           "Toggle local `whitespace-mode' options." t)
>
> After evaluating the previous elisp expressions (or after restarting
> Emacs) you have the new mode ready to use: "M-x whitespace-mode".
>
> This mode is distributed with Emacs 23 so when/if you later upgrade your
> Emacs you can just forget about all these.

Hi Teemu, and thanks for your reply.
I followed your steps, but still to no avail.
After I type "M-x whitespace-mode", I get the following error:
Loading /home/tomer/elisp/whitespace.el (source)...
load-with-code-conversion: Symbol's value as variable is void: <!
DOCTYPE

This is my .emacs file content:
(add-to-list 'load-path "~/elisp")
(autoload 'whitespace-mode           "whitespace" "Toggle whitespace
visualization."        t)
(autoload 'whitespace-toggle-options "whitespace" "Toggle local
`whitespace-mode' options." t)

Appreciate your help,
Tomer


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: whitespace
  2009-01-26 16:28   ` whitespace Tomer
@ 2009-01-26 16:44     ` Teemu Likonen
  2009-01-26 16:55       ` whitespace Tomer
  0 siblings, 1 reply; 5+ messages in thread
From: Teemu Likonen @ 2009-01-26 16:44 UTC (permalink / raw)
  To: help-gnu-emacs

Tomer (2009-01-26 08:28 -0800) wrote:

> I followed your steps, but still to no avail.
> After I type "M-x whitespace-mode", I get the following error:
> Loading /home/tomer/elisp/whitespace.el (source)...
> load-with-code-conversion: Symbol's value as variable is void: <!
> DOCTYPE

Your whitespace.el contains some html code. That's where the "<!DOCTYPE"
came from. You need to download the lisp-only file, not the html page.
It's probably not your fault, at least I remember having similar
problems with Emacswiki a couple of times.

Anyway, load the whitespace.el from page

    http://www.emacswiki.org/cgi-bin/emacs/whitespace.el

and use the "Download" link with "Save Link As..." in your browser. That
should work.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: whitespace
  2009-01-26 16:44     ` whitespace Teemu Likonen
@ 2009-01-26 16:55       ` Tomer
  0 siblings, 0 replies; 5+ messages in thread
From: Tomer @ 2009-01-26 16:55 UTC (permalink / raw)
  To: help-gnu-emacs

On Jan 26, 6:44 pm, Teemu Likonen <tliko...@iki.fi> wrote:
> Tomer (2009-01-26 08:28 -0800) wrote:
>
> > I followed your steps, but still to no avail.
> > After I type "M-x whitespace-mode", I get the following error:
> > Loading /home/tomer/elisp/whitespace.el (source)...
> > load-with-code-conversion: Symbol's value as variable is void: <!
> > DOCTYPE
>
> Your whitespace.el contains some html code. That's where the "<!DOCTYPE"
> came from. You need to download the lisp-only file, not the html page.
> It's probably not your fault, at least I remember having similar
> problems with Emacswiki a couple of times.
>
> Anyway, load the whitespace.el from page
>
>    http://www.emacswiki.org/cgi-bin/emacs/whitespace.el
>
> and use the "Download" link with "Save Link As..." in your browser. That
> should work.

Thanks a lot - I should have checked the file's content to starts
with...
The "Save Link As..." trick didn't work though, so I just copy and
pasted the code to a new file.

Cheers!


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-26 16:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-26 15:45 whitespace Tomer
2009-01-26 16:14 ` whitespace Teemu Likonen
2009-01-26 16:28   ` whitespace Tomer
2009-01-26 16:44     ` whitespace Teemu Likonen
2009-01-26 16:55       ` whitespace Tomer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.