[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to teach emacs that ' + c = ç
From: |
Filipe Silva |
Subject: |
how to teach emacs that ' + c = ç |
Date: |
Tue, 4 Jul 2017 22:25:52 -0300 |
I've set up my keyboard layout in arch with localectl set-x11-keymap us
pc104 intl
By default, in this layout, the ' is a dead character. It is called a dead
acute. In portuguese, we are used to compose the ç char with ' + c = ç when
using international us-keyboard layouts.
I don't know why, but by default linux distros come configured so that when
you type this combination ' + c= ć, which is an invalid char in Brazilian
portuguese, and so I'm screwed.
So I did this:
-
Editing the files:
sudo vim /usr/lib/gtk-3.0/3.0.0/immodules.cache sudo vim
/usr/lib/gtk-2.0/2.10.0/immodules.cache
changing the line
"cedilla" "Cedilla" "gtk20" "/usr/share/locale"
"az:ca:co:fr:gv:oc:pt:sq:tr:wa" to "cedilla" "Cedilla" "gtk20"
"/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en"
-
replaced "ć" to "ç" and "Ć" to "Ç" on
/usr/share/X11/locale/en_US.UTF-8/Compose
sudo cp /usr/share/X11/locale/en_US.UTF-8/Compose
/usr/share/X11/locale/en_US.UTF-8/Compose.bak sed 's/ć/ç/g' <
/usr/share/X11/locale/en_US.UTF-8/Compose | sed 's/Ć/Ç/g' > Compose sudo mv
Compose /usr/share/X11/locale/en_US.UTF-8/Compose
-
add two lines on /etc/environment
GTK_IM_MODULE=cedilla QT_IM_MODULE=cedilla
-
restart my computer.
And all is working fine in firefox, chromium, scite, gvim or any other gui
tool, but no emacs. on emacs, ' + cinsist on producing ć, despite my
efforts.
So I ask you, how can I teach emacs to produce ç and not ć in this scenario?
thanks in advance.
- how to teach emacs that ' + c = ç,
Filipe Silva <=
Re: how to teach emacs that ' + c = ç, Héctor Lahoz, 2017/07/05