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

Can't set flycheck-set-indication-mode to left-margin #4052

Closed
khmelevskii opened this issue Oct 8, 2020 · 6 comments
Closed

Can't set flycheck-set-indication-mode to left-margin #4052

khmelevskii opened this issue Oct 8, 2020 · 6 comments
Labels
invalid Unactionable, unrelated, inappropriate, or a pilot error

Comments

@khmelevskii
Copy link

When I manually run (flycheck-set-indication-mode 'left-margin) everything works great

But I can't set it by default. I tried to use a lot of variants, for example,

(package! flycheck-clj-kondo)

(use-package flycheck-clj-kondo
  :config
  (flycheck-set-indication-mode 'left-margin))
@hlissner hlissner added the invalid Unactionable, unrelated, inappropriate, or a pilot error label Oct 8, 2020
@hlissner
Copy link
Member

hlissner commented Oct 8, 2020

Use this instead:

;; in ~/.doom.d/config.el
(after! flycheck
  (flycheck-set-indication-mode 'left-margin))

@khmelevskii
Copy link
Author

unfortunately doesn't work :/

@hlissner
Copy link
Member

hlissner commented Oct 8, 2020

Then use (setq +vc-gutter-default-style nil) to disable Doom's default fringe/margin styling.

@khmelevskii
Copy link
Author

still doesn't work

;; in ~/.doom.d/config.el
(setq +vc-gutter-default-style nil)

(after! flycheck
  (flycheck-set-indication-mode 'left-margin))
> ~/.emacs.d/bin/doom sync

I use default doom-emacs.

@hlissner
Copy link
Member

hlissner commented Oct 21, 2020

;; Disable default fringe styling
(setq +vc-gutter-default-style nil)
;; Make sure the margin is visible to begin with
(setq-default left-margin-width 1)
;; Move flycheck to left margin
(setq-default flycheck-indication-mode 'left-margin)

Can't use flycheck-set-indication-mode because it acts buffer-locally, not globally.

@khmelevskii
Copy link
Author

@hlissner awesome, it works. Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid Unactionable, unrelated, inappropriate, or a pilot error
Projects
None yet
Development

No branches or pull requests

2 participants