all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christof Spitz <cs@lotsawa.de>
To: help-gnu-emacs@gnu.org, Rustom Mody <rustompmody@gmail.com>
Subject: Re: keyboard macro
Date: Mon, 21 Oct 2013 19:59:31 +0200 (CEST)	[thread overview]
Message-ID: <1956474674.379829.1382378371340.open-xchange@app02.ox.hosteurope.de> (raw)
In-Reply-To: <40423770-9d97-4457-a2ea-5d6859f69c9a@googlegroups.com>

Wow, thanks so much, Rustom, works great!!

Christof

> Rustom Mody <rustompmody@gmail.com> hat am 21. Oktober 2013 um 19:00
> geschrieben:
>
>
> On Monday, October 21, 2013 10:05:51 PM UTC+5:30, Christof Spitz wrote:
> > Hello,
> >
> >
> >
> > I have to write special characters for transliteration of a non-european
> > language (devanagari) in Emacs. These include characters like ā,ī,ū,ś,ṣ etc.
> > Basically this has become easy since Emacs supports Unicode. The question is
> > how
> > to enter those special characters easily. In Windows, I use a scripting
> > program
> > called "AutoHotKey". I defined macros so that, for example, when I write
> > "..a"
> > it will insert "ā" etc. In Emacs, I was not able to define such macros. I
> > have
> >
> > to use the "function keys" such as f5, or Ctrl or Alt (Meta), so that I have
> > to
> > enter f5-a to produce ā, for example. That makes the typewriting slow. If I
> > define a macro instead, it needs to finish the string "..a" with a space to
> > "trigger" the insert, but this is not what I want.
> >
> >
> > So my question: Is there a way to define a macro/keyboard function that will
> > insert a certain character at the point when I write "..x" (not followed by
> > a
> > space)?
> >
> >
> > Or should I better look for a Linux scripting program that works similar to
> > AutoHotKey in Windows?
> >
>
> After evaluating the below code, do C-x RET C-\ diacritic-for-devanagari
> --------------------
> (require 'quail)
>
> (quail-define-package
> "diacritic-for-devanagari" "UTF-8" "अ" t
> "Example diacritic
>
> " nil t t nil t nil nil nil nil nil t)
>
> (quail-define-rules
> ("..a" ?ā)
> ;; add the rest here
> )
>
>
--

Christof Spitz
Opitzstr. 6a
22301 Hamburg
phone +49 40 38636135
mobile +49 172 9008988


  reply	other threads:[~2013-10-21 17:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4404.1382373480.10748.help-gnu-emacs@gnu.org>
2013-10-21 17:00 ` keyboard macro Rustom Mody
2013-10-21 17:59   ` Christof Spitz [this message]
2013-10-22 17:38 ` Rustom Mody
2013-10-21 16:35 Christof Spitz
2013-10-21 17:26 ` Stefan Monnier
     [not found] ` <mailman.4410.1382376390.10748.help-gnu-emacs@gnu.org>
2013-10-21 17:39   ` Rustom Mody
2013-10-21 18:17 ` Yuri Khan
2013-10-21 18:25   ` Yuri Khan
  -- strict thread matches above, loose matches on Subject: below --
2010-05-28  8:05 Kanhaiya

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=1956474674.379829.1382378371340.open-xchange@app02.ox.hosteurope.de \
    --to=cs@lotsawa.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rustompmody@gmail.com \
    /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.