jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Replacing certain characters


On Thu, Apr 22, 2004 at 12:25:09PM +0300, dvv wrote:
> Hi!
> I'm editing SGML docs and would like to replace certain letters (Bulgarian 
> "ia") automatically.
> I'm pasting some ready configs for vim and emacs that do this. 

I use this when I write html: 

define key_generate_entities() {
       local_setkey(" ñ","ñ");
       local_setkey(" Ñ","Ñ");
       /* ... */ 
       message("Now keys generate HTML entities sequences");       
}

define key_generate_latin1() {
       /* this probably could be done more intelligently... */ 
       local_setkey(" ñ","ñ");
       local_setkey(" Ñ","Ñ");
       /* ... */
       message("Now keys generate LATIN1 char");       
}

and then in html_mode_hook() I have: 

local_setkey ("key_generate_latin1","^Xa");
local_setkey ("key_generate_entities, "^X^A); 

So I can switch from one mode to another by ctrl-x ctrl-a and ctrl-x a.
Should be possible to adapt this to your case. 

Romano 

-- 
Romano Giannetti             -  Univ. Pontificia Comillas (Madrid, Spain)
Electronic Engineer - phone +34 915 422 800 ext 2416  fax +34 915 596 569


--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]