Skip to content

Instantly share code, notes, and snippets.

@coopernurse
Created March 13, 2011 00:16
Show Gist options
  • Save coopernurse/867730 to your computer and use it in GitHub Desktop.
Save coopernurse/867730 to your computer and use it in GitHub Desktop.
my .emacs from pycon
(require 'compile)
(require 'thingatpt)
(require 'flymake)
;;
;;
(setq-default indent-tabs-mode nil)
(global-font-lock-mode 1)
;; PyFlakes for Python code
(when (load "flymake" t)
(defun flymake-pyflakes-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "pyflakes" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pyflakes-init)))
(add-hook 'python-mode-hook 'flymake-mode)
;; download ack.el from: http://hg.rooijan.za.net/addons/raw-file/5b737eefe5ea/ack.el
(load "~/.emacs.d/ack")
;; download textmate.el from: https://github.com/defunkt/textmate.el/raw/master/textmate.el
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment