From 928880592ff510c676a82fff12ed3f20ef9d707e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 18 Aug 2020 22:16:11 +0100 Subject: +basic setup for python --- Emacs/.config/emacs/config.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 7c832f8..5f3c9d3 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1153,6 +1153,24 @@ Clang format for when: (bind-key "C-c '" #'clang-format-region c-mode-map) (bind-key "C-c '" #'clang-format-region c++-mode-map)) #+end_src +** Python +Setup for python, including a toggle option +#+begin_src emacs-lisp +(use-package python + :straight nil + :after eshell + :commands +python/toggle-repl + :general + (leader + "tp" #'+python/toggle-repl) + :init + (setq python-indent-offset 4) + :config + (defun +python/toggle-repl () + "Create a repl for python" + (interactive) + (+dx/toggle-buffer "*Python*" #'run-python))) +#+END_SRC ** HTML/CSS/JS Firstly, web mode for consistent colouring of syntax. #+begin_src emacs-lisp -- cgit v1.2.3-13-gbd6f