Maqz447
November 2nd, 2008, 10:55 PM
Hi all. I posted this half a day ago in the genereal help forum but that may not be the right place, though this may not be either...
It's not a big problem, more of an annoyance. I created a file ~/.xmodmap that swaps my caps lock and ctrl keys. This is convenient when using Emacs of course. I added the line "xmodmap ~/.xmodmap" to my .bashrc. This works as expected. The problem is, any time I open a shell (terminal instance or in emacs) .bashrc is of course read again and swap them back! So I have to type "xmodmap ~/.xmodmap" manually every time I open a shell instance. Does anyone know of a clever trick to avoid this?
It's not a big problem, more of an annoyance. I created a file ~/.xmodmap that swaps my caps lock and ctrl keys. This is convenient when using Emacs of course. I added the line "xmodmap ~/.xmodmap" to my .bashrc. This works as expected. The problem is, any time I open a shell (terminal instance or in emacs) .bashrc is of course read again and swap them back! So I have to type "xmodmap ~/.xmodmap" manually every time I open a shell instance. Does anyone know of a clever trick to avoid this?