use python environment setup from github user gabrielelanaro

This commit is contained in:
sbenner 2012-12-19 15:18:34 -05:00
parent 50040fc42f
commit 66fb478e9a
5 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,37 @@
(require 'cl)
(require 'color)
(defvar heartbeat-fps 16)
(defvar heartbeat-period 4)
(defun heartbeat-range (from to cnt)
(let ((step (/ (- to from) (float cnt))))
(loop for i below cnt collect (+ from (* step i)))))
(defun heartbeat-cursor-colors ()
(let ((cnt (* heartbeat-period heartbeat-fps)))
(mapcar (lambda (r)
(color-rgb-to-hex r 0 0))
(nconc (heartbeat-range .2 1 (/ cnt 2))
(heartbeat-range 1 .2 (/ cnt 2))))))
(defvar heartbeat-cursor-timer nil)
(defvar heartbeat-cursor-old-color)
(define-minor-mode heartbeat-cursor-mode
"Change cursor color with the heartbeat effect."
nil "" nil
:global t
(when heartbeat-cursor-timer
(cancel-timer heartbeat-cursor-timer)
(setq heartbeat-cursor-timer nil)
(set-face-background 'cursor heartbeat-cursor-old-color))
(when heartbeat-cursor-mode
(setq heartbeat-cursor-old-color (face-background 'cursor)
heartbeat-cursor-timer
(run-with-timer
0 (/ 1 (float heartbeat-fps))
(lexical-let ((colors (heartbeat-cursor-colors)) tail)
(lambda ()
(setq tail (or (cdr tail) colors))
(set-face-background 'cursor (car tail))))))))

View File

@ -0,0 +1,7 @@
(autoload
'ace-jump-mode
"ace-jump-mode"
"Emacs quick move minor mode"
t)
;; you can select the key you prefer to
(define-key global-map (kbd "C-c SPC") 'ace-jump-mode)

View File

@ -0,0 +1 @@

View File

@ -0,0 +1,14 @@
(require 'eproject)
(require 'eproject-extras)
(define-project-type python (generic)
(look-for "dummy_dummy")
:relevant-files ("\\.py$")
:irrevelant-files ("\\.pyc$"))
(define-project-type Wrappy (python) (look-for "wrappy.py"))
(define-project-type Mappy (python) (look-for "mappy.py"))
(require 'eproject-anything)
(global-set-key (kbd "s-L") 'anything-eproject-files)
(global-set-key (kbd "s-b") 'anything-eproject-buffers)

View File

@ -0,0 +1,2 @@
(pymacs-load "ropemacs" "rope-")
(setq ropemacs-enable-autoimport t)