From 6e5ffd9a5de4e843b1540a1a4b7efeb18d37f818 Mon Sep 17 00:00:00 2001 From: oreodave Date: Wed, 24 Jul 2019 02:14:18 +0100 Subject: +Python keybinds and configuration --- doom.d/config.org | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'doom.d/config.org') 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 -- cgit v1.2.3-13-gbd6f