aboutsummaryrefslogtreecommitdiff
path: root/doom.d/config.org
diff options
context:
space:
mode:
authororeodave <aryadevchavali1@gmail.com>2019-07-24 02:14:18 +0100
committeroreodave <aryadevchavali1@gmail.com>2019-07-24 02:14:18 +0100
commit6e5ffd9a5de4e843b1540a1a4b7efeb18d37f818 (patch)
treeaeeda5f844d1316a796c44d0b1ce42c3ac4aa70a /doom.d/config.org
parentb91a204fe66d67ed9bbe8fa327ed5307827a87e2 (diff)
downloaddotfiles-6e5ffd9a5de4e843b1540a1a4b7efeb18d37f818.tar.gz
dotfiles-6e5ffd9a5de4e843b1540a1a4b7efeb18d37f818.tar.bz2
dotfiles-6e5ffd9a5de4e843b1540a1a4b7efeb18d37f818.zip
+Python keybinds and configuration
Diffstat (limited to 'doom.d/config.org')
-rw-r--r--doom.d/config.org23
1 files changed, 23 insertions, 0 deletions
diff --git a/doom.d/config.org b/doom.d/config.org
index 48bb97e..5664f8a 100644
--- a/doom.d/config.org
+++ b/doom.d/config.org
@@ -71,3 +71,26 @@ become my C one soon!
)
#+END_SRC
+** Python
+#+BEGIN_SRC emacs-lisp
+(after! python
+ (setq python-version-checked t)
+ (setq python-python-command "python3")
+ (setq python-shell-interpreter "python3")
+ (setq default-frame-alist
+ (add-to-list 'default-frame-alist '(font . "Fira Code")))
+ (setq flycheck-python-pycompile-executable "python3")
+
+ ; Python Keybinds
+ (map!
+ :map python-mode-map
+ :localleader
+ :desc "Start python minor" "c" 'run-python
+ (:prefix "s"
+ :desc "Send region REPL" "r" 'python-shell-send-region
+ :desc "Send buffer" "b" 'python-shell-send-buffer
+ :desc "Send function" "f" 'python-shell-send-defun
+ )
+ )
+ )
+#+END_SRC