Connecting Embark and Consult
This commit is contained in:
		
							parent
							
								
									82ff876a18
								
							
						
					
					
						commit
						758782a0b6
					
				
					 1 changed files with 13 additions and 1 deletions
				
			
		| 
						 | 
					@ -955,8 +955,20 @@ The [[https://github.com/oantolin/embark/][embark]] project offers /actions/ on
 | 
				
			||||||
    :config
 | 
					    :config
 | 
				
			||||||
    (ha-leader "h K" '("keybindings" . embark-bindings)))
 | 
					    (ha-leader "h K" '("keybindings" . embark-bindings)))
 | 
				
			||||||
#+END_SRC
 | 
					#+END_SRC
 | 
				
			||||||
** Evil Snipe
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					According to [[https://elpa.gnu.org/packages/embark-consult.html#orgc76b5de][this essay]], Embark cooperates well with the [[https://github.com/minad/marginalia][Marginalia]] and [[https://github.com/minad/consult][Consult]] packages. Neither of those packages is a dependency of Embark, but Embark supplies a hook for Consult where Consult previews can be done from Embark Collect buffers:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#+BEGIN_SRC emacs-lisp
 | 
				
			||||||
 | 
					(use-package embark-consult
 | 
				
			||||||
 | 
					  :after (embark consult)
 | 
				
			||||||
 | 
					  :demand t ; only necessary if you have the hook below
 | 
				
			||||||
 | 
					  ;; if you want to have consult previews as you move around an
 | 
				
			||||||
 | 
					  ;; auto-updating embark collect buffer
 | 
				
			||||||
 | 
					  :hook
 | 
				
			||||||
 | 
					  (embark-collect-mode . consult-preview-at-point-mode))
 | 
				
			||||||
 | 
					#+END_SRC
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					** Evil Snipe
 | 
				
			||||||
Doom introduced me to [[https://github.com/hlissner/evil-snipe][evil-snipe]] which is similar to =f= and =t=, but does two characters, and can, when configured, search more than the current line. When I use it, I stop and analyze to see the two characters to work on, so I’ve changed from the default, single ~s~, to ~g s~ so as not to get it confused with the =evil-surround=.
 | 
					Doom introduced me to [[https://github.com/hlissner/evil-snipe][evil-snipe]] which is similar to =f= and =t=, but does two characters, and can, when configured, search more than the current line. When I use it, I stop and analyze to see the two characters to work on, so I’ve changed from the default, single ~s~, to ~g s~ so as not to get it confused with the =evil-surround=.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#+BEGIN_SRC emacs-lisp
 | 
					#+BEGIN_SRC emacs-lisp
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue