Skip to content

Instantly share code, notes, and snippets.

@mattjmorrison
Created December 7, 2012 04:43
Show Gist options
  • Save mattjmorrison/4230808 to your computer and use it in GitHub Desktop.
Save mattjmorrison/4230808 to your computer and use it in GitHub Desktop.
Emacs Config
(add-to-list 'load-path "~/.emacs.d/plugins")
(require 'color-theme)
(color-theme-initialize)
(color-theme-midnight)
(set-face-attribute 'default nil :height 130)
(add-to-list 'load-path "~/.emacs.d/vendor")
(load-file "~/.emacs.d/emacs-for-python/epy-init.el")
(require `tramp)
(load-file "~/.emacs.d/emacs-for-python/epy-pylint.el")
(load-file "~/.emacs.d/emacs-for-python/epy-flake8.el")
(defun google ()
"Googles a query or region if any."
(interactive)
(browse-url
(concat
"http://www.google.com/search?ie=utf-8&oe=utf-8&q="
(url-hexify-string (if mark-active
(buffer-substring (region-beginning) (region-end))
(read-string "Google: "))))))
(global-set-key (kbd "C-x g") 'google)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment