diff options
author | Kyle Meyer <meyerkya@gmail.com> | 2013-01-12 12:44:44 -0500 |
---|---|---|
committer | Kyle Meyer <meyerkya@gmail.com> | 2013-01-12 13:56:01 -0500 |
commit | 96ee4bd0bd7b5cc8a6d9ca918ede26e82a9b20a7 (patch) | |
tree | 9065fbcdd65c7c80dbc15859d9ea6dd8507b256d /conf/km-python.el | |
parent | f5b226cae165532ed34ffefd7d003d10d984f004 (diff) | |
download | emacs.d-96ee4bd0bd7b5cc8a6d9ca918ede26e82a9b20a7.tar.gz |
glob init files files for loading
Diffstat (limited to 'conf/km-python.el')
-rw-r--r-- | conf/km-python.el | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/conf/km-python.el b/conf/km-python.el deleted file mode 100644 index ce7aa53..0000000 --- a/conf/km-python.el +++ /dev/null @@ -1,34 +0,0 @@ -(defun km/python-sysexit () - (interactive) - (insert "sys.exit()")) - -(defun km/python-random-assignment () - (interactive) - (km/insert-random-string 10) - (insert " = None")) - -(defun km/python-shebang () - (interactive) - (km/shebang "python")) - -(defconst km/python-analysis-imports - "import sys -import numpy as np -import pandas as pd -import matplotlib.pyplot as plt -from matplotlib.ticker import MaxNLocator - -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 r") 'km/python-random-assignment) - (local-set-key (kbd "C-c p e") 'km/python-sysexit) - (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) |