From 17c3db149d8bd90d55b32b5b03f490748cbebff9 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 7 Feb 2019 16:54:53 -0500 Subject: [PATCH] Add a python shell keybinding --- emacs/init.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index ce47b20..73b7aca 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -962,7 +962,8 @@ Elpy is a python IDE package: (use-package elpy :config (elpy-enable) - (pyvenv-mode)) + (pyvenv-mode) + (leader-def-key "sp" #'elpy-shell-switch-to-shell)) (defun eshell/workon (name) (pyvenv-workon name)) @@ -2384,5 +2385,5 @@ The Emacs Multi-Media System. For libtag to work, libtag must be installed on th * SQL Emacs has excellent built-in SQL support. #+BEGIN_SRC emacs-lisp - (leader-def-key "sp" #'sql-postgres) + (leader-def-key "sg" #'sql-postgres) #+END_SRC