From b053e559840868abe4e04ab31c8de2a4993f6b71 Mon Sep 17 00:00:00 2001 From: Marc Pohling Date: Thu, 10 May 2018 18:01:45 +0200 Subject: [PATCH] highlight indentation for python-mode --- config.org | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index ef15195..6b2f7b0 100644 --- a/config.org +++ b/config.org @@ -1438,19 +1438,29 @@ Depends on pyvenv #+END_SRC Highlight indentations + #+BEGIN_SRC emacs-lisp +(use-package highlight-indentation + :init + (add-hook 'python-mode-hook 'highlight-indentation-current-column-mode) + (add-hook 'python-mode-hook 'highlight-indentation-mode) + :config + (set-face-background 'highlight-indentation-face "#454545") + (set-face-background 'highlight-indentation-current-column-face "#656565")) +#+END_SRC +BEGIN_SRC emacs-lisp (use-package highlight-indent-guides :ensure t :defer t :init (add-hook 'python-mode-hook 'highlight-indent-guides-mode) :config - (setq highlight-indent-guides-method 'character - highlight-indent-guides-character ?\| + (setq highlight-indent-guides-method 'column ;'character + ;highlight-indent-guides-character ?\| highlight-indent-guides-auto-odd-face-perc 15 highlight-indent-guides-auto-even-face-perc 15 highlight-indent-guides-auto-character-face-perc 20)) -#+END_SRC +END_SRC Anaconda test