[emacs-berlin] multilang.el (example Emacs config)

Ilia Kurenkov ilia.kurenkov at gmail.com
Fri Sep 20 14:22:05 UTC 2019


Thanks, Felix, for sharing!

I finally got a chance to take a look, seems pretty clear. I have two
points:

#1 Changing dictionaries.
Maybe consider renaming "dont-change-dictionary" to "keep-dictionary". It's
shorter and avoids the double negative in (not dont-change-dictionary),
which tends to explode dumb brains like mine ;)  A further simplification
could be to get rid of that argument altogether and instead make the
new-dictionary argument optional and switch dictionaries if it's not nil,
but this could get awkward depending on how you use those
language-switching functions.

#2 An over-engineering idea
I noticed in the current setup in order to add/change/remove a language,
one would need to touch 3 places, if I'm not mistaken. This is probably
over-engineering, but it might pay to put all the language settings
together in some kind of list and then loop over that list, performing the
relevant setup for each language. That way there's only one place for
languages to be added/removed/changed. Just an idea, my ELisp skills are
too shaky to propose an implementation, but I'd learn a lot from seeing
one, I think.

I'm afraid I can't comment on the issues you brought up, just discovered
typo-mode from your code and so far I have only managed my keyboard layout
from my OS, not Emacs.

Cheers,
Ilia

On Wed, Sep 4, 2019 at 9:01 PM Felix E. Klee <felix.klee at inka.de> wrote:

> Ilia (in CC, and also in the list) asked me for the multi language
> configuration that I demoed two meetups ago:
>
> https://gist.github.com/feklee/b855424f0a7932446bb2192d2a363731
>
> Enjoy!
>
> I’m happy to answer related questions wherever I can.  There is also
> stuff that I would like to figure out:
>
>   * Currently, it is necessary to have an American keyboard layout when
>     starting Emacs.  AFAICT it is possible to tell quail to use another
>     input layout, but I haven’t understood that yet.  That stuff is
>     arcane.
>
>   * Why isn’t it possible to cycle through dashes with my `german-t1`
>     keyboard layout?  (`typo-mode` issue)
>


-- 
Ilia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailb.org/pipermail/emacs-berlin/attachments/20190920/000ef9c5/attachment.html>


More information about the emacs-berlin mailing list