Fold half whitespaces / utf8 problems

View: New views
3 Messages — Rating Filter:   Alert me  

Fold half whitespaces / utf8 problems

by Frederik Fischbach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi to everyone,

I use half whitespaces "\," a lot, as I often use abbreviations. This
may cause very ugly code. So I wanted to fold the half whitespaces with
the bullet symbol: ∙

But when I try to save the .emacs file, emacs complains that it can't
encode the non-latin symbol. How do I make emacs open and save the
.emacs file in utf-8? Or is there a better solution?
When I choose "Options - Mule - Set coding systems - For saving this
buffer - utf-8" and reopen .emacs, some symbols get mixed up, including
the bullet symbol.

I find the handling of encoding by emacs a bit confusing...
Is emacs able to choose whether to read a file as utf-8 or normal latin
automatically? A short dialogue when saving a buffer the first time (on
C-c C-w), asking in which format the file should be written, would be
nice, I think.

Regards,
Fred



_______________________________________________
auctex mailing list
auctex@...
http://lists.gnu.org/mailman/listinfo/auctex

Re: Fold half whitespaces / utf8 problems

by David Kastrup :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Frederik <freak.fred@...> writes:

> Hi to everyone,
>
> I use half whitespaces "\," a lot, as I often use abbreviations. This
> may cause very ugly code. So I wanted to fold the half whitespaces
> with the bullet symbol: ∙
>
> But when I try to save the .emacs file, emacs complains that it can't
> encode the non-latin symbol. How do I make emacs open and save the
> .emacs file in utf-8? Or is there a better solution?
> When I choose "Options - Mule - Set coding systems - For saving this
> buffer - utf-8" and reopen .emacs, some symbols get mixed up,
> including the bullet symbol.

Try putting a coding cookie in the file _and_ saving with the above
procedure.  Namely a file-local variable (see the manual) with the name
coding and the value utf-8.


--
David Kastrup


_______________________________________________
auctex mailing list
auctex@...
http://lists.gnu.org/mailman/listinfo/auctex

Re: Fold half whitespaces / utf8 problems

by Frederik Fischbach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

> Try putting a coding cookie in the file _and_ saving with the above
> procedure.  Namely a file-local variable (see the manual) with the name
> coding and the value utf-8.

This worked! Thanks.

AUCTeX/RefTeX are such wonderful pieces of software, I discover more and
more nifty features... Thanks a lot for that!

Regards,
Fred



_______________________________________________
auctex mailing list
auctex@...
http://lists.gnu.org/mailman/listinfo/auctex