Created
March 13, 2011 00:16
-
-
Save coopernurse/867730 to your computer and use it in GitHub Desktop.
my .emacs from pycon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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