Skip to content

Instantly share code, notes, and snippets.

View mdelegge's full-sized avatar

Marc DeLegge mdelegge

View GitHub Profile
@mdelegge
mdelegge / OSX mouse location
Created March 10, 2013 03:21
Get mouse location in OSX
CGEventRef ourEvent = CGEventCreate(NULL);
point = CGEventGetLocation(ourEvent);
NSLog(@"Location? x= %f, y = %f", (float)point.x, (float)point.y);
@mdelegge
mdelegge / Dark-theme.el
Created March 2, 2013 06:53
An Emacs custom theme based on color-theme-late-night by Alex Schroeder
(deftheme Dark
"Created 2012-06-27.")
(custom-theme-set-faces
'Dark
'(default ((t (:inherit nil :stipple nil :background "black" :foreground "#666" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 160 :width normal :foundry "apple" :family "Menlo"))))
'(cursor ((t (:background "#888"))))
'(fixed-pitch ((t (:weight bold :family "Monospace"))))
'(variable-pitch ((t nil)))
'(escape-glyph ((((background dark)) (:foreground "cyan")) (((type pc)) (:foreground "magenta")) (t (:foreground "brown"))))