Browse Source

highlight indentation for python-mode

master
Marc Pohling 6 years ago
parent
commit
b053e55984
1 changed files with 13 additions and 3 deletions
  1. 16
      config.org

16
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

Loading…
Cancel
Save