Add some linux compatibility stuff. WIP...

This commit is contained in:
2014-11-07 05:11:23 -08:00
parent 9c26907f7c
commit 796bfed264
9 changed files with 29 additions and 13 deletions

View File

@@ -1,6 +1,5 @@
clear Mod1
clear Mod2
keycode 63 = Mode_switch
keycode 66 = Meta_L
add Mod1 = Meta_L
add Mod2 = Mode_switch
keycode 66 = Control_L
clear Lock
add Control = Control_L
keycode 117 = Caps_Lock
add Lock = Caps_Lock

View File

@@ -1,4 +1,4 @@
alias emacs='temacs'
alias emacs='terminal_emacs'
is_osx && alias emacs='cocoa_emacs'
alias terminal_emacs='_emacs -t'
alias ec='_emacs -n '

View File

@@ -107,10 +107,15 @@ function is_osx() {
esac
}
function clipboard() {
# TODO: Remove this.
alias clipboard='oscopy'
function oscopy() {
if is_osx;
then
reattach-to-user-namespace pbcopy
else
xclip -selection c
fi
}
@@ -118,6 +123,8 @@ function ospaste() {
if is_osx;
then
reattach-to-user-namespace pbpaste
else
xclip -o
fi
}

View File

@@ -36,6 +36,6 @@ function smart_copy() {
then
remote_os_copy
else
clipboard
oscopy
fi
}