From: David Hansen <david.hansen@gmx.net>
Subject: Re: emacs as frontend for translate?
Date: Sun, 20 Mar 2005 01:24:10 +0100 [thread overview]
Message-ID: <87ekebi2qd.fsf@robotron.ath.cx> (raw)
In-Reply-To: mailman.4428.1111265354.32256.help-gnu-emacs@gnu.org
On Sat, 19 Mar 2005 21:28:29 +0100 Raimund Kohl-Fuechsle wrote:
> I use "translate" a lot (Debian Sarge). Is there a way to use emacs as
> a frontend for translate?
>From my ~/.emacs:
;;;; ding
(defvar dh-ding-file-name "/usr/share/trans/de-en"
"File name of the ding dictionary.")
(when (file-exists-p dh-ding-file-name)
(defun dh-ding (&optional query)
(interactive (list (read-string "Query: " (current-word))))
(let ((coding-system-for-read 'latin-1)
(coding-system-for-write 'latin-1))
(grep (concat "egrep -nHih " query " " dh-ding-file-name))))
(global-set-key "\C-cw" 'dh-ding))
AFAIK ding and translate are using the same dictionary.
David
next parent reply other threads:[~2005-03-20 0:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4428.1111265354.32256.help-gnu-emacs@gnu.org>
2005-03-20 0:24 ` David Hansen [this message]
2005-03-19 20:28 emacs as frontend for translate? Raimund Kohl-Fuechsle
2005-03-19 20:50 ` Raimund Kohl-Fuechsle
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=87ekebi2qd.fsf@robotron.ath.cx \
--to=david.hansen@gmx.net \
/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.