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

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

Re: Going Unicode all out in Emacs 26.1


From: Filipp Gunbin
Subject: Re: Going Unicode all out in Emacs 26.1
Date: Sat, 09 Jun 2018 18:00:40 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin)

On 09/06/2018 15:50 +0530, Sivaram Neelakantan wrote:

> I have no issues so far; all I wanted to know was whether there are
> any .Emacs settings that needs to be fiddled with to make Unicode work
> on Windows.  I just checked the Hello file, all languages seem to
> render correctly in terms of the chars that I see.   I see that the
> modeline has got a U with a tooltip 'utf-8-emacs-dos' which should
> allow me to work in Emacs and nonemacs Windows application like
> notepad(reading the file for e.g)?

You may want to read (info "(emacs) Language Environments") to feel
yourself more confident about this.

If you need to customize something, you can use hook
`set-language-environment-hook'.

I have this in my .emacs:

(add-hook 'set-language-environment-hook
          (lambda ()
            (if (equal current-language-environment "UTF-8")
                (setq default-input-method 'russian-computer))))
(set-language-environment "UTF-8")

It says "just use utf-8 lang environment", ignoring env vars LANG,
LC_ALL, LC_CTYPE.  Then, on setting the lang env, it sets a suitable
input method.

But, as noted, things should work fine without customization.

Filipp



reply via email to

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