Skip to content

Instantly share code, notes, and snippets.

View dreeve's full-sized avatar

Derek Reeve dreeve

  • Stitch Fix
  • San Francisco, CA
View GitHub Profile
using XQuartz (2.6.0), you have to clear Mod1 in order for the Super and Alt keys to take effect. This configuration requires that "Option keys send Alt_L and Alt_R" checkbox is set in Preferences.
clear Mod1
clear Mod4
clear Mod2
keycode 66 = Alt_L
keycode 63 = Super_L
add Mod2 = Alt_L
add Mod4 = Super_L
@dreeve
dreeve / vim_install
Created February 4, 2011 18:01
Install gvim on OS X Snow Leopard with ruby support
Install gtk2 via macports
Download vim 7.3, extract, cd into the directory
$ ./configure --enable-rubyinterp --enable-gui=gtk2 --disable-darwin
$ make
This works when running vim/gvim with ruby
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.3.1]
but not
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
@dreeve
dreeve / .gtk-2.0
Created February 1, 2011 13:41
color fix for gtk borders in xmonad
# this goes in your ~/.gtkrc-2.0 file
style "vimfix" {
bg[NORMAL] = "#242424" # this matches my gvim theme 'Normal' bg color.
}
widget "vim-main-window.*GtkForm" style "vimfix"
# taken from a very helpful post here: https://bbs.archlinux.org/viewtopic.php?id=65285
@dreeve
dreeve / .Xmodmap
Created December 22, 2010 15:16
Xmodmap to help with xmonad and emacs
clear Mod2
clear Mod4
keycode 66 = Meta_L
keycode 63 = Super_L
add Mod2 = Meta_L
add Mod4 = Super_L
@dreeve
dreeve / .Xdefaults
Created December 21, 2010 15:54
In X11 on OSX, if you're trying to get Meta to work correctly in xterm, add this to ~/.Xdefaults
XTerm*metaSendsEscape: true
XTerm*eightBitInput: false