python environment

This commit is contained in:
sbenner 2012-12-18 17:24:55 -05:00
parent 45a3323524
commit 6b8759a737
13 changed files with 45 additions and 5 deletions

17
init.el
View File

@ -16,16 +16,24 @@
(require 'my-funcs)
;;font size
(set-face-attribute 'default nil :height 110)
;;number colon mode
(global-linum-mode t)
;;no tool bar
(tool-bar-mode 0)
(menu-bar-mode 0)
(scroll-bar-mode 0)
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(fringe-mode 0)
;;tool tips in echo area
(tooltip-mode -1)
(setq tooltip-use-echo-area t)
;; whitespace-mode
(setq-default show-trailing-whitespace t)
;; Inhibit startup message
(setq inhibit-startup-screen t)
(setq inhibit-startup-message t
inhibit-startup-echo-area-message t)
(setq initial-scratch-message "")
;; Cursor, please do not blink
(blink-cursor-mode nil)
;; Do not make backup files
@ -38,6 +46,7 @@
(show-paren-mode t)
;; auto-save
(add-hook 'before-save-hook (lambda () (delete-trailing-whitespace)))
(setq redisplay-dont-pause t)
;; Config files
(progn

View File

@ -1,3 +1,10 @@
(defun minimap-toggle ()
"Toggle minimap for current buffer."
(interactive)
(if (null minimap-bufname)
(minimap-create)
(minimap-kill)))
(defun z:mac-p ()
"Truthy if the host OS is a Mac."
(string-match "apple-darwin" system-configuration))

View File

@ -0,0 +1,4 @@
(require 'anything) (require 'anything-ipython)
(when (require 'anything-show-completion nil t)
(use-anything-show-completion 'anything-ipython-complete
'(length initial-pattern)))

View File

@ -0,0 +1,3 @@
(autoload 'autopair-global-mode "autopair" nil t)
(autopair-global-mode)
(add-hook 'lisp-mode-hook #'(lambda () (setq autopair-dont-activate t)))

View File

@ -0,0 +1,2 @@
(require 'flymake-python-pyflakes)
(add-hook 'python-mode-hook 'flymake-python-pyflakes-load)

View File

View File

@ -0,0 +1 @@
(require 'p4)

View File

@ -0,0 +1 @@
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))

View File

View File

View File

@ -0,0 +1,2 @@
(require 'sr-speedbar)
(global-set-key (kbd "s-s") 'sr-speedbar-toggle)

View File

@ -8,14 +8,25 @@
(package-initialize)
(defvar z:my-packages
'(
anything
anything-ipython
anything-show-completion
autopair
erlang
evil
fill-column-indicator
flymake
flymake-python-pyflakes
ipython
key-chord
p4
powerline
python-mode
python-pep8
python-pylint
rainbow-delimiters
smooth-scrolling
solarized-theme
sr-speedbar
surround
))