summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2023-07-30 11:07:39 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2023-07-30 11:27:06 +0200
commit9f187474ea27c781f93ed9835167067bc4545540 (patch)
treed8ce1820d7cf2ac8cb64c3824bf5006d937ce0d8 /.emacs
parent575530e831c047dfc7f5e1c169c07ceb8fbfe666 (diff)
downloaddotfiles-9f187474ea27c781f93ed9835167067bc4545540.tar.xz
Chip away at Custom file
Move Python settings to use-package. Tweak a couple of knobs while in there.
Diffstat (limited to '.emacs')
-rw-r--r--.emacs11
1 files changed, 6 insertions, 5 deletions
diff --git a/.emacs b/.emacs
index f01f9be..6d7ba70 100644
--- a/.emacs
+++ b/.emacs
@@ -419,11 +419,6 @@
(add-hook 'c-mode-common-hook 'my/c-modes-hook)
-(defun my/python-hook ()
- (setq-local forward-sexp-function nil))
-
-(add-hook 'python-mode-hook 'my/python-hook)
-
(defun my/compilation-notify (buffer results)
(let* ((title (buffer-name buffer))
(status (if (string-equal results "finished\n") "success" "failure"))
@@ -836,6 +831,12 @@
(show-paren-mode t)
(show-paren-predicate t))
+(use-package python
+ :custom
+ (python-fill-docstring-style 'pep-257-nn)
+ (python-forward-sexp-function nil)
+ (python-indent-def-block-scale 1))
+
(use-package shell
:config
(setq shell-font-lock-keywords nil)