Some apps don't swapped alt&win after xmodmap runs? (GUI emacs)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a mac-book-air. I swapped my Alt & Win with xmodmap as per linux post like so:



keycode 64 = Alt_L
keycode 133 = Super_L
remove Mod1 = Alt_L
remove Mod4 = Super_L
add Mod1 = Super_L
add Mod4 = Alt_L


Then I apply it via:



xmodmap xmodmap.file


(btw, I can't seem to apply this directly at system start up, I have to run this maybe 1 min after bootup as otherwise changes don't seem to apply).



Now my Alt+tab works properly in my window manager but for some apps (e.g Emacs or firefox), but in Emacs meta(alt) and Super(cmd) are not swapped. I.e, s-x and M-x are not swapped.



Do you have any tips/advise/things to try? (
Is it possible to re-map these from inside emacs itself?



Background:

- I'm using MATE Desktop.
- I tried Gnome Tweak Tool to swap alt & cmd, but it doesn't seem to function under MATE Desktop.



[Edit]

- This issue occurs only in GUI's , e.g emacs/firefox. In terminal it get's the right keys.

- I have tried re-starting emacs/firefox, restarting system, applying the change then start emacs/firefox. No Luck.










share|improve this question























  • This might not be on-topic there, but I'll just mention there is a emacs.stackexchange.com.
    – Faheem Mitha
    Apr 11 '15 at 23:55










  • Hello, thank you for mentioning this. I updated the question. The issue seems to come up in other apps also, e.g in firefox but not in terminal.
    – Leo Ufimtsev
    Apr 12 '15 at 0:26














up vote
0
down vote

favorite












I have a mac-book-air. I swapped my Alt & Win with xmodmap as per linux post like so:



keycode 64 = Alt_L
keycode 133 = Super_L
remove Mod1 = Alt_L
remove Mod4 = Super_L
add Mod1 = Super_L
add Mod4 = Alt_L


Then I apply it via:



xmodmap xmodmap.file


(btw, I can't seem to apply this directly at system start up, I have to run this maybe 1 min after bootup as otherwise changes don't seem to apply).



Now my Alt+tab works properly in my window manager but for some apps (e.g Emacs or firefox), but in Emacs meta(alt) and Super(cmd) are not swapped. I.e, s-x and M-x are not swapped.



Do you have any tips/advise/things to try? (
Is it possible to re-map these from inside emacs itself?



Background:

- I'm using MATE Desktop.
- I tried Gnome Tweak Tool to swap alt & cmd, but it doesn't seem to function under MATE Desktop.



[Edit]

- This issue occurs only in GUI's , e.g emacs/firefox. In terminal it get's the right keys.

- I have tried re-starting emacs/firefox, restarting system, applying the change then start emacs/firefox. No Luck.










share|improve this question























  • This might not be on-topic there, but I'll just mention there is a emacs.stackexchange.com.
    – Faheem Mitha
    Apr 11 '15 at 23:55










  • Hello, thank you for mentioning this. I updated the question. The issue seems to come up in other apps also, e.g in firefox but not in terminal.
    – Leo Ufimtsev
    Apr 12 '15 at 0:26












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a mac-book-air. I swapped my Alt & Win with xmodmap as per linux post like so:



keycode 64 = Alt_L
keycode 133 = Super_L
remove Mod1 = Alt_L
remove Mod4 = Super_L
add Mod1 = Super_L
add Mod4 = Alt_L


Then I apply it via:



xmodmap xmodmap.file


(btw, I can't seem to apply this directly at system start up, I have to run this maybe 1 min after bootup as otherwise changes don't seem to apply).



Now my Alt+tab works properly in my window manager but for some apps (e.g Emacs or firefox), but in Emacs meta(alt) and Super(cmd) are not swapped. I.e, s-x and M-x are not swapped.



Do you have any tips/advise/things to try? (
Is it possible to re-map these from inside emacs itself?



Background:

- I'm using MATE Desktop.
- I tried Gnome Tweak Tool to swap alt & cmd, but it doesn't seem to function under MATE Desktop.



[Edit]

- This issue occurs only in GUI's , e.g emacs/firefox. In terminal it get's the right keys.

- I have tried re-starting emacs/firefox, restarting system, applying the change then start emacs/firefox. No Luck.










share|improve this question















I have a mac-book-air. I swapped my Alt & Win with xmodmap as per linux post like so:



keycode 64 = Alt_L
keycode 133 = Super_L
remove Mod1 = Alt_L
remove Mod4 = Super_L
add Mod1 = Super_L
add Mod4 = Alt_L


Then I apply it via:



xmodmap xmodmap.file


(btw, I can't seem to apply this directly at system start up, I have to run this maybe 1 min after bootup as otherwise changes don't seem to apply).



Now my Alt+tab works properly in my window manager but for some apps (e.g Emacs or firefox), but in Emacs meta(alt) and Super(cmd) are not swapped. I.e, s-x and M-x are not swapped.



Do you have any tips/advise/things to try? (
Is it possible to re-map these from inside emacs itself?



Background:

- I'm using MATE Desktop.
- I tried Gnome Tweak Tool to swap alt & cmd, but it doesn't seem to function under MATE Desktop.



[Edit]

- This issue occurs only in GUI's , e.g emacs/firefox. In terminal it get's the right keys.

- I have tried re-starting emacs/firefox, restarting system, applying the change then start emacs/firefox. No Luck.







emacs xmodmap






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 20 mins ago









Rui F Ribeiro

37.4k1374118




37.4k1374118










asked Apr 11 '15 at 21:54









Leo Ufimtsev

3611213




3611213











  • This might not be on-topic there, but I'll just mention there is a emacs.stackexchange.com.
    – Faheem Mitha
    Apr 11 '15 at 23:55










  • Hello, thank you for mentioning this. I updated the question. The issue seems to come up in other apps also, e.g in firefox but not in terminal.
    – Leo Ufimtsev
    Apr 12 '15 at 0:26
















  • This might not be on-topic there, but I'll just mention there is a emacs.stackexchange.com.
    – Faheem Mitha
    Apr 11 '15 at 23:55










  • Hello, thank you for mentioning this. I updated the question. The issue seems to come up in other apps also, e.g in firefox but not in terminal.
    – Leo Ufimtsev
    Apr 12 '15 at 0:26















This might not be on-topic there, but I'll just mention there is a emacs.stackexchange.com.
– Faheem Mitha
Apr 11 '15 at 23:55




This might not be on-topic there, but I'll just mention there is a emacs.stackexchange.com.
– Faheem Mitha
Apr 11 '15 at 23:55












Hello, thank you for mentioning this. I updated the question. The issue seems to come up in other apps also, e.g in firefox but not in terminal.
– Leo Ufimtsev
Apr 12 '15 at 0:26




Hello, thank you for mentioning this. I updated the question. The issue seems to come up in other apps also, e.g in firefox but not in terminal.
– Leo Ufimtsev
Apr 12 '15 at 0:26















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f195695%2fsome-apps-dont-swapped-altwin-after-xmodmap-runs-gui-emacs%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f195695%2fsome-apps-dont-swapped-altwin-after-xmodmap-runs-gui-emacs%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

The Forum (Inglewood, California)

Palaiologos