all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: ispell-dictionaries: Different Linuxes, different names :(
Date: Sun, 06 Sep 2009 17:22:18 +0100	[thread overview]
Message-ID: <4aa3e1bb$0$290$14726298@news.sunsite.dk> (raw)
In-Reply-To: <h80eqe$s7n$1@news.eternal-september.org>

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.


      reply	other threads:[~2009-09-06 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-06 13:52 ispell-dictionaries: Different Linuxes, different names :( Christian Herenz
2009-09-06 16:22 ` Colin S. Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='4aa3e1bb$0$290$14726298@news.sunsite.dk' \
    --to=no-spam-thank-you@csmiller.demon.co.uk \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.