Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for use in use-package #38

Open
romankrv opened this issue Dec 18, 2017 · 3 comments
Open

Documentation for use in use-package #38

romankrv opened this issue Dec 18, 2017 · 3 comments

Comments

@romankrv
Copy link

Please add documentation how to use(setup) Highlight-Indentation-for-Emacs in use-package.
Thanks

@angrybacon
Copy link

(use-package highlight-indentation
  :hook
  ((python-mode . highlight-indentation-mode)
   (python-mode . highlight-indentation-current-column-mode)))

@kinnala
Copy link

kinnala commented Feb 27, 2019

How the colors can be set? If I add

(set-face-background 'highlight-indentation-face "#e3e3d3")

under :init I get an error during startup. (highlight-indentation-face does not exist.)

@kinnala
Copy link

kinnala commented Feb 27, 2019

Worked like this:

(use-package highlight-indentation
  :init
  (progn
    (defun set-hl-indent-color ()
      (set-face-background 'highlight-indentation-face "#e3e3d3"))
    (add-hook 'python-mode-hook 'highlight-indentation-mode)
    (add-hook 'python-mode-hook 'set-hl-indent-color)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants