diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-18 22:16:11 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-18 22:16:11 +0100 |
commit | 928880592ff510c676a82fff12ed3f20ef9d707e (patch) | |
tree | 8af5afde26746b460127f69962394f3df061c28d /Emacs/.config/emacs/config.org | |
parent | 404f4914238a39af4ceda229d41d2ea7eede50a8 (diff) | |
download | dotfiles-928880592ff510c676a82fff12ed3f20ef9d707e.tar.gz dotfiles-928880592ff510c676a82fff12ed3f20ef9d707e.tar.bz2 dotfiles-928880592ff510c676a82fff12ed3f20ef9d707e.zip |
+basic setup for python
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r-- | Emacs/.config/emacs/config.org | 18 |
1 files changed, 18 insertions, 0 deletions
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 |