nschum / auto-dictionary-mode

Emacs: automatic dictionary switcher for flyspell
http://nschum.de/src/emacs/auto-dictionary/
28 stars 13 forks source link

Make adict-dictionary-list customizable #2

Closed rrthomas closed 11 years ago

rrthomas commented 11 years ago

The docstring for adict-dictionary-list says "Change them if you'd like a different region for your language". I want to use British English, so I'd like to change the entry for "en" to "british", but I can't see a neater way of doing this than to manually change item 1 of the list, which is fragile and not very user-friendly. A more robust, and preferably customize-based, interface would be nice!

rrthomas commented 11 years ago

As a very small step, here's the code I eventually discovered was needed to change an entry, here for the English dictionary:

(setcar (nthcdr 1 adict-dictionary-list) "british")

This could be included as an example in the docstring.

nschum commented 11 years ago

Could you take a look at this branch https://github.com/nschum/auto-dictionary-mode/tree/f/alist?

It changes the dictionary list format to be more flexible and adds defcustom support.

What do you think?

rrthomas commented 11 years ago

Thanks, that's also great. I have it installed and working, with no need for a tricky line of init code.

On 25 May 2013 12:41, Nikolaj Schumacher notifications@github.com wrote:

Could you take a look at this branch https://github.com/nschum/auto-dictionary-mode/tree/f/alist?

It changes the dictionary list format to be more flexible and adds defcustom support.

What do you think?

— Reply to this email directly or view it on GitHubhttps://github.com/nschum/auto-dictionary-mode/issues/2#issuecomment-18445820 .

http://rrt.sc3d.org