+basic setup for python

This commit is contained in:
2020-08-18 22:16:11 +01:00
parent 404f491423
commit 928880592f

View File

@@ -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