0

Emacs 29.3 GNU (Flatpak) - installed by Software Manager

Linux Mint 21.3

Install ripgrep:

apt install ripgrep

In init.el

(use-package rg
  :ensure t
  :ensure-system-package rg)


(use-package consult
  :bind (
     ;; C-c bindings (mode-specific-map)
         ("C-c M-x" . consult-mode-command)
         ("C-c h" . consult-history)
         ("C-c k" . consult-kmacro)
         ("C-c m" . consult-man)
         ("C-c i" . consult-info)
         ([remap Info-search] . consult-info)
         ;; C-x bindings (ctl-x-map)
         ("C-x M-:" . consult-complex-command)     ;; orig. repeat-complex-command
         ;; Filtering: press "b" -> space = [Buffer], "f" -> Space = [File], "m" -> Space = [Bookmarks] and so on.
     ("C-x b" . consult-buffer)                ;; orig. switch-to-buffer
         ("C-x 4 b" . consult-buffer-other-window) ;; orig. switch-to-buffer-other-window
         ("C-x 5 b" . consult-buffer-other-frame)  ;; orig. switch-to-buffer-other-frame
         ("C-x r b" . consult-bookmark)            ;; orig. bookmark-jump
     ("C-x C-r" . consult-recent-file)         ;; Select from recent files with preview.
         ("C-x p b" . consult-project-buffer)      ;; orig. project-switch-to-buffer
         ;; Custom M-# bindings for fast register access
         ("M-#" . consult-register-load)
         ("M-'" . consult-register-store)          ;; orig. abbrev-prefix-mark (unrelated)
         ("C-M-#" . consult-register)
         ;; Other custom bindings
         ("M-y" . consult-yank-pop)                ;; orig. yank-pop
         ;; M-g bindings (goto-map)
         ("M-g e" . consult-compile-error)
         ("M-g f" . consult-flymake)               ;; Alternative: consult-flycheck
         ("M-g g" . consult-goto-line)             ;; orig. goto-line
         ("M-g o" . consult-outline)               ;; Alternative: consult-org-heading
         ("M-g m" . consult-mark)
         ("M-g k" . consult-global-mark)
         ("M-g i" . consult-imenu)
         ("M-g I" . consult-imenu-multi)
         ;; M-s bindings (search-map)
         ("M-s d" . consult-find)
         ("M-s D" . consult-locate)
         ("M-s g" . consult-grep)
         ("M-s G" . consult-git-grep)
         ("M-s r" . consult-ripgrep)
         ("M-s l" . consult-line)
         ("M-s L" . consult-line-multi)
         ("M-s k" . consult-keep-lines)
         ("M-s u" . consult-focus-lines)
         ;; Isearch integration
         ("M-s e" . consult-isearch-history)
         :map isearch-mode-map
         ("M-e" . consult-isearch-history)         ;; orig. isearch-edit-string
         ("M-s e" . consult-isearch-history)       ;; orig. isearch-edit-string
         ("M-s l" . consult-line)                  ;; needed by consult-line to detect isearch
         ("M-s L" . consult-line-multi)            ;; needed by consult-line to detect isearch
         ;; Minibuffer history
         :map minibuffer-local-map
         ("M-s" . consult-history)                 ;; orig. next-matching-history-element
         ("M-r" . consult-history))                ;; orig. previous-matching-history-element

But when I start Emacs I get error:

⛔ Error (use-package): rg/:catch: install not supported in nil

And when I try command consult-ripgrep I get error:

Error running timer: (file-missing "Searching for program" "No such file or directory" "rg")

P.S.

If I use Emacs 27 or Emacs 28 the problem is gone. And Emacs start without any errors.

14
  • Is rg installed? If so, does Emacs know where to find it? Commented Jun 8, 2024 at 15:54
  • @Drew sudo apt install rg -> E: Unable to locate package rg Commented Jun 8, 2024 at 18:31
  • @Drew If I use Emacs 27 or Emacs 28 the problem is gone. And Emacs start without any errors. Commented Jun 8, 2024 at 19:32
  • Put all such info in the question, please. Commented Jun 8, 2024 at 22:12
  • By any chance, did you install Emacs 29 from Snap? Commented Jun 9, 2024 at 16:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.