avy tweaks for keyboard
This commit is contained in:
		
							parent
							
								
									518b3b7eb4
								
							
						
					
					
						commit
						51e283e587
					
				
					 2 changed files with 30 additions and 2 deletions
				
			
		
							
								
								
									
										16
									
								
								README.org
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								README.org
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -3248,7 +3248,14 @@ In order to view created websites, I'll use =simple-httpd= to get a web server r
 | 
			
		|||
Avy provides a lot of functions to search through the current buffer. Most of the time I use evil or consult functions to find what I'm looking for, but avy provides a lot of small movements that are more useful for visible movements.
 | 
			
		||||
#+begin_src emacs-lisp
 | 
			
		||||
(use-package avy
 | 
			
		||||
  :after evil)
 | 
			
		||||
  :after evil
 | 
			
		||||
  :config
 | 
			
		||||
  (setq avy-keys '(99 105 101 97 104 116 115 110))
 | 
			
		||||
  :general
 | 
			
		||||
  (general-define-key
 | 
			
		||||
   :states 'normal
 | 
			
		||||
   :keymaps '(override rustic-mode)
 | 
			
		||||
   "gh" 'avy-goto-word-0))
 | 
			
		||||
#+end_src
 | 
			
		||||
 | 
			
		||||
These are some evil bindings to avy.
 | 
			
		||||
| 
						 | 
				
			
			@ -4171,6 +4178,13 @@ I'm making a small function in here to open files in the appropriate program usi
 | 
			
		|||
        dired-kill-when-opening-new-dired-buffer t)
 | 
			
		||||
  (add-hook 'dired-mode-hook 'chris/setup-dired)
 | 
			
		||||
 | 
			
		||||
  (defun chris/convert-doc-to-org ()
 | 
			
		||||
    "Convert a word doc to an org file"
 | 
			
		||||
    (interactive)
 | 
			
		||||
    (let* ((file (dired-get-filename))
 | 
			
		||||
           (out (string-replace "docx" "org" file)))
 | 
			
		||||
      (async-shell-command (format "pandoc --wrap=preserve -o '%s' '%s'" out file))))
 | 
			
		||||
 | 
			
		||||
  (custom-set-faces '(dired-directory ((t :foreground "#57c7ff" :inherit dired-header))))
 | 
			
		||||
 | 
			
		||||
  :general
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										16
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2346,7 +2346,14 @@ targets."
 | 
			
		|||
  :ensure t)
 | 
			
		||||
 | 
			
		||||
(use-package avy
 | 
			
		||||
  :after evil)
 | 
			
		||||
  :after evil
 | 
			
		||||
  :config
 | 
			
		||||
  (setq avy-keys '(99 105 101 97 104 116 115 110))
 | 
			
		||||
  :general
 | 
			
		||||
  (general-define-key
 | 
			
		||||
   :states 'normal
 | 
			
		||||
   :keymaps '(override rustic-mode)
 | 
			
		||||
   "gh" 'avy-goto-word-0))
 | 
			
		||||
 | 
			
		||||
(use-package evil-avy
 | 
			
		||||
  :after avy
 | 
			
		||||
| 
						 | 
				
			
			@ -3042,6 +3049,13 @@ targets."
 | 
			
		|||
        dired-kill-when-opening-new-dired-buffer t)
 | 
			
		||||
  (add-hook 'dired-mode-hook 'chris/setup-dired)
 | 
			
		||||
 | 
			
		||||
  (defun chris/convert-doc-to-org ()
 | 
			
		||||
    "Convert a word doc to an org file"
 | 
			
		||||
    (interactive)
 | 
			
		||||
    (let* ((file (dired-get-filename))
 | 
			
		||||
           (out (string-replace "docx" "org" file)))
 | 
			
		||||
      (async-shell-command (format "pandoc --wrap=preserve -o '%s' '%s'" out file))))
 | 
			
		||||
 | 
			
		||||
  (custom-set-faces '(dired-directory ((t :foreground "#57c7ff" :inherit dired-header))))
 | 
			
		||||
 | 
			
		||||
  :general
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue