Reorganize flymake config
This commit is contained in:
parent
3575569ea8
commit
7f2f176f1c
21
config.org
21
config.org
|
@ -1933,6 +1933,14 @@ And just to make sure nothing else accidentally starts running:
|
||||||
(package! flyspell :disable t)
|
(package! flyspell :disable t)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** Bindings
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(map! :leader
|
||||||
|
:desc "Open errors buffer"
|
||||||
|
"c X" #'flymake-show-project-diagnostics)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** Tooltips
|
*** Tooltips
|
||||||
|
|
||||||
Having an IDE-style tooltip pop up is nice, but ~flymake-popon~ is a bit ugly by default.
|
Having an IDE-style tooltip pop up is nice, but ~flymake-popon~ is a bit ugly by default.
|
||||||
|
@ -1945,6 +1953,13 @@ Having an IDE-style tooltip pop up is nice, but ~flymake-popon~ is a bit ugly by
|
||||||
(set-face-foreground 'flymake-popon-posframe-border (doom-color 'selection)))
|
(set-face-foreground 'flymake-popon-posframe-border (doom-color 'selection)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** Popups
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(after! flymake
|
||||||
|
(set-popup-rule! "^\\*Flymake" :vslot 1 :side 'bottom))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** Indent Guides
|
** Indent Guides
|
||||||
|
|
||||||
#+call: confpkg("!Pkg highlight-indent-guides")
|
#+call: confpkg("!Pkg highlight-indent-guides")
|
||||||
|
@ -1970,14 +1985,12 @@ I've found that character-based indent guides work best.
|
||||||
;; (advice-add #'lsp-avy-lens :before (cmd! (require 'avy)))
|
;; (advice-add #'lsp-avy-lens :before (cmd! (require 'avy)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Here's some convenient leader key bindings as well:
|
Here's a convenient leader key binding as well:
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(map! :leader
|
(map! :leader
|
||||||
:desc "Select LSP code lens"
|
:desc "Select LSP code lens"
|
||||||
"c L" #'lsp-avy-lens
|
"c L" #'lsp-avy-lens)
|
||||||
:desc "Open errors buffer"
|
|
||||||
"c X" #'flymake-show-project-diagnostics)
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Magit
|
** Magit
|
||||||
|
|
Loading…
Reference in a new issue