* ispell-dictionaries: Different Linuxes, different names :(
@ 2009-09-06 13:52 Christian Herenz
2009-09-06 16:22 ` Colin S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Christian Herenz @ 2009-09-06 13:52 UTC (permalink / raw
To: help-gnu-emacs
Hi,
I have to use different workstations, where different linux flavours are
installed. The problem is, that different distros do different stuff. For
example, the ispell dictionary for german (reformed-spelling) is called
"german-new" in debian, in opensuse it is "german".
In my .emacs I used as a discriminator the workstations name, but this is not
very efficient if you are working on more than two stations.
Is there a way to discriminate different distros in .emacs? Especially
"opensuse" and "debian"...
Greetings,
Christian
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ispell-dictionaries: Different Linuxes, different names :(
2009-09-06 13:52 ispell-dictionaries: Different Linuxes, different names :( Christian Herenz
@ 2009-09-06 16:22 ` Colin S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: Colin S. Miller @ 2009-09-06 16:22 UTC (permalink / raw
To: help-gnu-emacs
Christian Herenz wrote:
> Hi,
>
> I have to use different workstations, where different linux flavours are
> installed. The problem is, that different distros do different stuff.
> For example, the ispell dictionary for german (reformed-spelling) is
> called "german-new" in debian, in opensuse it is "german".
>
> In my .emacs I used as a discriminator the workstations name, but this
> is not very efficient if you are working on more than two stations.
>
> Is there a way to discriminate different distros in .emacs? Especially
> "opensuse" and "debian"...
>
> Greetings,
> Christian
Christian,
In Debian, the file /etc/debian_version will exist.
On Debian-derived systems, the file /etc/apt/sources.list will almost certainly exist.
Likewise on RedHat based systems (and any other systems that use yum),
/etc/yum.conf wil exist.
For YaST based systems including SuSE, /etc/yast/control.xml will exist, AFAIK.
I don't have access to a SuSE based system to verify this.
The other way to check what the best dictionary is to check for
/usr/lib/aspell/<dictionary-name>
or
/usr/lib/ispell/<dictionary-name>.hash
Or have aspell/ispell check it for you by examining the return code of
ispell -d<dictionary-name> -e < /dev/null
aspell -d<dictionary-name> -a < /dev/null
HTH,
Colin S. Miller
--
Replace the obvious in my email address with the first three letters of the hostname to reply.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-06 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-06 13:52 ispell-dictionaries: Different Linuxes, different names :( Christian Herenz
2009-09-06 16:22 ` Colin S. Miller
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.