summaryrefslogtreecommitdiff
path: root/init/km-python.el
diff options
context:
space:
mode:
authorKyle Meyer <meyerkya@gmail.com>2013-06-29 01:35:43 -0400
committerKyle Meyer <meyerkya@gmail.com>2013-06-30 20:42:10 -0400
commit54577f4f7ccd88348a31fe0c8893bf203bcf4926 (patch)
treec79d3a14332611459d3517c2ff8792cff330d4cd /init/km-python.el
parent2ef6bc3923917df9b1708bba164c2ce535ed00e8 (diff)
downloademacs.d-54577f4f7ccd88348a31fe0c8893bf203bcf4926.tar.gz
move python shebang/common imports to yasnippet
Diffstat (limited to 'init/km-python.el')
-rw-r--r--init/km-python.el22
1 files changed, 0 insertions, 22 deletions
diff --git a/init/km-python.el b/init/km-python.el
index 9940611..8d5271a 100644
--- a/init/km-python.el
+++ b/init/km-python.el
@@ -1,25 +1,3 @@
-(defun km/python-shebang ()
- (interactive)
- (km/shebang "python"))
-
-(defconst km/python-analysis-imports
- "import numpy as np
-import pandas as pd
-import matplotlib.pyplot as plt
-from matplotlib import ticker
-
-from colors import brew, fgry, bgry")
-
-(defun km/python-insert-analysis-imports ()
- "Common imports for analysis scripts"
- (interactive)
- (insert km/python-analysis-imports))
-
-(defun km/python-hook ()
- (local-set-key (kbd "C-c p s") 'km/python-shebang)
- (local-set-key (kbd "C-c p a") 'km/python-insert-analysis-imports))
-(add-hook 'python-mode-hook 'km/python-hook)
-
;; http://www.emacswiki.org/emacs/PythonProgrammingInEmacs#toc5
(setq
python-shell-interpreter "ipython"