Skip to content

Commit

Permalink
fix(transient): install from Elpa on Emacs 28
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 20, 2023
1 parent 28dea66 commit 978a698
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
14 changes: 7 additions & 7 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ or file path may exist now."
(use-package seq
:straight (:type built-in))

(use-package transient
:straight `(:type ,(if (< emacs-major-version 29) 'git 'built-in))
;; Map ESC and q to quit transient
:bind (:map transient-map
("q" . transient-quit-one)
("<escape>" . transient-quit-one)))

(use-package password-cache
:straight (:type built-in)
:custom
Expand Down Expand Up @@ -1681,13 +1688,6 @@ Useful for quickly switching to an open buffer."
(dolist (command '(scroll-up-command scroll-down-command recenter-top-bottom other-window))
(advice-add command :after #'+pulse-line)))

(use-package transient
:straight (:type built-in)
;; Map ESC and q to quit transient
:bind (:map transient-map
("q" . transient-quit-one)
("<escape>" . transient-quit-one)))

(use-package isearch
:straight (:type built-in)
;; Scroll in isearch history using UP/DOWN or C-j/C-k
Expand Down
15 changes: 1 addition & 14 deletions modules/me-checkers.el
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,7 @@


;; Make hydra bindings for `flymake'
(with-eval-after-load 'flymake
(+map-local! :keymaps 'flymake-mode-map "ff" #'+flymake-transient)
(transient-define-prefix +flymake-transient ()
"Transient for dape."
[[""
("n" "Next error" flymake-goto-next-error :transient t)
("N" "Prev error" flymake-goto-prev-error :transient t)]
[""
("B" "Buffer diagnostics" flymake-show-buffer-diagnostics :transient t)
("P" "Project diagnostics" flymake-show-project-diagnostics :transient t)
("L" "Log buffer" flymake-switch-to-log-buffer :transient t)]
[""
("S" "Start" flymake-start :transient t)
("Q" "Quit" ignore :transient t)]]))
(with-eval-after-load 'flymake)


(provide 'me-checkers)
Expand Down

0 comments on commit 978a698

Please sign in to comment.