Skip to content

Commit

Permalink
tweak(flymake): add hydra menu
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jun 6, 2023
1 parent 6fa0fe3 commit 4407230
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion modules/me-checkers.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
:config
(+map-local! :keymaps 'flymake-mode-map
"f" '(nil :wk "flymake")
"ff" #'+flymake-main/body
"fn" #'flymake-goto-next-error
"fN" #'flymake-goto-prev-error
"fs" #'flymake-start
Expand Down Expand Up @@ -69,7 +70,23 @@
#b00001111000
#b00000111100
#b00000011110]
nil 13))
nil 13)

(defhydra +flymake-main (:color red :hint nil :foreign-keys warn)
"
[Flymake] [_q_] quit
├──────────────────────────────────────────────────────────────────────╮
│ [_B_] Buffer diagnostics [_P_] Project diagnostics [_L_] Log buffer │
│ [_n_] Next error [_N_] Prev error [_S_] Start │
╰──────────────────────────────────────────────────────────────────────╯
"
("B" flymake-show-buffer-diagnostics)
("P" flymake-show-project-diagnostics)
("L" flymake-switch-to-log-buffer)
("n" flymake-goto-next-error)
("N" flymake-goto-prev-error)
("S" flymake-start)
("q" nil :color blue)))

(use-package flymake-easy
:straight t)
Expand Down

0 comments on commit 4407230

Please sign in to comment.