Skip to main content
added 6 characters in body
Source Link

I have a UK keyboard and this is setup and functioning on Ubuntu 21.04 with all of my apps. When I open emacs inside a terminal using emacs -nw it also correctly used the gb keyboard layout. However when opening emacs (27.2, built from repo) in a new frame from a call to emacs or clicking on the shortcut, it switches to a us keyboard layout. I am unable to get it to use a qwerty-gb layout.

I have tried setting in my config/calling interactively:

(setq quail-keyboard-layout 'pc105-uk)

However whatever I choose doesn't appear to have any impact.

I have also tried interactively calling set-input-method british. This has had some help in the shift+3 is now '£' instead of '#'. However other keys such as my '#' come out as '\'.

Please could I have some help?

I have a UK keyboard and this is setup and functioning on Ubuntu with all of my apps. When I open emacs inside a terminal using emacs -nw it also correctly used the gb keyboard layout. However when opening emacs (27.2, built from repo) in a new frame from a call to emacs or clicking on the shortcut, it switches to a us keyboard layout. I am unable to get it to use a qwerty-gb layout.

I have tried setting in my config/calling interactively:

(setq quail-keyboard-layout 'pc105-uk)

However whatever I choose doesn't appear to have any impact.

I have also tried interactively calling set-input-method british. This has had some help in the shift+3 is now '£' instead of '#'. However other keys such as my '#' come out as '\'.

Please could I have some help?

I have a UK keyboard and this is setup and functioning on Ubuntu 21.04 with all of my apps. When I open emacs inside a terminal using emacs -nw it also correctly used the gb keyboard layout. However when opening emacs (27.2, built from repo) in a new frame from a call to emacs or clicking on the shortcut, it switches to a us keyboard layout. I am unable to get it to use a qwerty-gb layout.

I have tried setting in my config/calling interactively:

(setq quail-keyboard-layout 'pc105-uk)

However whatever I choose doesn't appear to have any impact.

I have also tried interactively calling set-input-method british. This has had some help in the shift+3 is now '£' instead of '#'. However other keys such as my '#' come out as '\'.

Please could I have some help?

added 109 characters in body
Source Link

I have a UK keyboard and this is setup and functioning on Ubuntu with all of my apps. When I open emacs inside a terminal using emacs -nw it also correctly used the gb keyboard layout. However when opening emacs (27.2, built from repo) in a new frame from a call to emacs or clicking on the shortcut, it switches to a us keyboard layout. I am unable to get it to use a qwerty-gb layout.

I have tried setting in my config/calling interactively:

(setq quail-keyboard-layout 'pc105-uk)

However whatever I choose doesn't appear to have any impact.

I have also tried interactively calling set-input-method british. This has had some help in the shift+3 is now '£' instead of '#'. However other keys such as my '#' come out as '\'.

Please could I have some help?

I have a UK keyboard and this is setup and functioning on Ubuntu with all of my apps. When I open emacs inside a terminal using emacs -nw correctly used the gb keyboard layout. However when opening emacs (27.2, built from repo) in a new frame it switches to a us keyboard layout.

I have tried setting in my config/calling interactively:

(setq quail-keyboard-layout 'pc105-uk)

However whatever I choose doesn't appear to have any impact.

I have also tried interactively calling set-input-method british. This has had some help in the shift+3 is now '£' instead of '#'. However other keys such as my '#' come out as '\'.

Please could I have some help?

I have a UK keyboard and this is setup and functioning on Ubuntu with all of my apps. When I open emacs inside a terminal using emacs -nw it also correctly used the gb keyboard layout. However when opening emacs (27.2, built from repo) in a new frame from a call to emacs or clicking on the shortcut, it switches to a us keyboard layout. I am unable to get it to use a qwerty-gb layout.

I have tried setting in my config/calling interactively:

(setq quail-keyboard-layout 'pc105-uk)

However whatever I choose doesn't appear to have any impact.

I have also tried interactively calling set-input-method british. This has had some help in the shift+3 is now '£' instead of '#'. However other keys such as my '#' come out as '\'.

Please could I have some help?

deleted 850 characters in body
Source Link

Solved!

The problem I had was thathave a UK keyboard and this is setup and functioning on Ubuntu with all of my apps. When I open emacs inside a terminal using emacs -nw correctly used the gb keyboard layout. However when opening emacs in a new frame it would use a us keyboard layout, and resist efforts to change this.

From https://emacs.stackexchange.com/questions/62185/unable-to-change-keyboard-layout-in-exwm-emacs27-1 I found some clues and I now explicitly call setxkbmap -model pc105 -layout gb (added to my .bashrc) which has resolved the problem for me.

Original Post:

I use a uk keyboard, and my OS is setup and all my apps automatically use that layout too. However Emacs (27.2, built from repo) for some reason usesin a us style layout. How can I changenew frame it switches to use the qwerty uka us keyboard layout?.

I have tried setting in my config/calling interactively:

(setq quail-keyboard-layout 'pc105-uk)

However whatever I choose doesn't appear to have any impact.

I have also tried interactively calling set-input-method "british"set-input-method british. This has had some help in the shift+3 is now '£' instead of '#'. However other keys such as my '#' come out as '\'.

Please could I have some help? If it isn't obvious, I'm a newbie to Emacs, so answers that don't assume much knowledge would be appreciated thanks!

Edit: I have now found this thread.

https://emacs.stackexchange.com/questions/62185/unable-to-change-keyboard-layout-in-exwm-emacs27-1

I don't understand it, but I have found that starting Emacs with emacs -nw does resolve the problem. I would still like to find a solution where I can start Emacs in a window.

Solved!

The problem I had was that emacs -nw correctly used the gb keyboard layout. However when opening emacs in a new frame it would use a us keyboard layout, and resist efforts to change this.

From https://emacs.stackexchange.com/questions/62185/unable-to-change-keyboard-layout-in-exwm-emacs27-1 I found some clues and I now explicitly call setxkbmap -model pc105 -layout gb (added to my .bashrc) which has resolved the problem for me.

Original Post:

I use a uk keyboard, and my OS is setup and all my apps automatically use that layout too. However Emacs (27.2, built from repo) for some reason uses a us style layout. How can I change it to use the qwerty uk layout?

I have tried setting in my config/calling interactively:

(setq quail-keyboard-layout 'pc105-uk)

However whatever I choose doesn't appear to have any impact.

I have also tried interactively calling set-input-method "british". This has had some help in the shift+3 is now '£' instead of '#'. However other keys such as my '#' come out as '\'.

Please could I have some help? If it isn't obvious, I'm a newbie to Emacs, so answers that don't assume much knowledge would be appreciated thanks!

Edit: I have now found this thread.

https://emacs.stackexchange.com/questions/62185/unable-to-change-keyboard-layout-in-exwm-emacs27-1

I don't understand it, but I have found that starting Emacs with emacs -nw does resolve the problem. I would still like to find a solution where I can start Emacs in a window.

I have a UK keyboard and this is setup and functioning on Ubuntu with all of my apps. When I open emacs inside a terminal using emacs -nw correctly used the gb keyboard layout. However when opening emacs (27.2, built from repo) in a new frame it switches to a us keyboard layout.

I have tried setting in my config/calling interactively:

(setq quail-keyboard-layout 'pc105-uk)

However whatever I choose doesn't appear to have any impact.

I have also tried interactively calling set-input-method british. This has had some help in the shift+3 is now '£' instead of '#'. However other keys such as my '#' come out as '\'.

Please could I have some help?

added 461 characters in body
Source Link
Loading
added 75 characters in body
Source Link
Loading
added 241 characters in body
Source Link
Loading
added 1 character in body
Source Link
Loading
added 190 characters in body
Source Link
Loading
Source Link
Loading