[OS X TeX] Re: PConfiguring Emacs 21.3.50 for AUC-TeX on OS X 10.3
Thomas A. Schmitz
thomas.schmitz at uni-bonn.de
Wed Dec 1 02:46:25 EST 2004
> Subject: Re: [OS X TeX] Configuring Emacs 21.3.50 for AUC-TeX on OS X
> 10.3
> From: "Martin Buchmann" <Martin.Buchmann at uni-jena.de>
> Date: Tue, 30 Nov 2004 11:26:42 +0100
>
> Hi all,
>
> a while ago something like
>
>> (setq default-frame-alist '((font .
>> "-apple-monaco-*-14-*-mac-roman")))
>
> was proposed for changing the default font of Emacs. Basically it
> works fine with me but i don't get any german umlauts displayed now
> :-( I get little rectangles instead. I searched in the docs and in
> the newsgroups and found that this could mean that the font doesn't
> have these characters. With the standard font umlauts are working
> fine so i guess the basic language and encoding set up is correct.
>
> Ans ideas how to achieve the Monaco font and the display of 8bit
> characters?
>
> Best regards
> Martin
>
> --
>
I'm not an emacs/lisp expert, all I can say is that this solution works
for me and takes care of both of your problems (displaying characters
>128 and copy/paste from other applications). I use Courier 24 as my
font in emacs, and I have this in my .emacs (copied and pasted from an
emacs-window, btw):
(set-keyboard-coding-system 'mac-roman)
(prefer-coding-system 'mac-roman)
(create-fontset-from-fontset-spec
"-apple-courier-medium-r-normal--24-*-*-*-*-*-fontset-courier,
ascii:-apple-courier-medium-r-normal--24-240-75-75-m-240-mac-roman,
latin-iso8859-1:-apple-courier-medium-r-normal--24-240-75-75-m-240-mac-
roman,
mac-roman:-apple-courier-medium-r-normal--24-240-75-75-m-240-mac-roman,
mule-unicode-0100-24ff:-apple-courier-medium-r-normal--24-240-75-75-m
-240-mac-roman")
(setq default-frame-alist '((width . 76)
(height . 36)
(font . "fontset-courier")))
(set-frame-font
"-apple-courier-medium-r-normal--24-*-*-*-*-*-fontset-courier" 'keep)
(set-selection-coding-system 'mac-roman)
Adapt the font settings to your heart's content and see if it works for
you. If you happen to open a file in a different encoding (let's say
utf-8), your emacs buffer will display garbage. All you have to do is
C-x RET r
emacs will respond
Coding system for visited file
you punch in
utf-8-unix
and voila - everything is perfect again.
With the help of some people from another list, I have also succeeded
in making Carbon Vim play nicely with different encodings; if anybody
is interested, drop me a line.
Best
Thomas
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list