;; "avy" (A Velociraptor Yanking) provides a fast way to navigate through text. The name "Velociraptor Yanking" is a play on words, as the package provides a fast and efficient way to navigate and manipulate text, similar to how a Velociraptor would quickly seize and carry off its prey.;; avy superimposes letters in the buffer with coloured backgrounds. ;; line commands;; especially helpful across windows
(global-set-key (kbd "M-g f") 'avy-goto-line) ;; go to a line, but not by using line-numbers; useful for moving across windows
(global-set-key (kbd "C-c l") 'avy-copy-line) ;; useful for copying lines across windows
(global-set-key (kbd "C-c m") 'avy-move-line) ;; useful for moving lines across windows;; word commands
(global-set-key (kbd "M-g w") 'avy-goto-word-1)
;; char commands
(global-set-key (kbd "C-:") 'avy-goto-char)
(global-set-key (kbd "C-'") 'avy-goto-char-2)
(global-set-key (kbd "M-j") 'avy-goto-char-timer) ;; adds a timer feature, offering a slight delay BEFORE the coloured letters appear, allowing you to orientated yourself in buffer.
(setq avy-timeout 1.0) ;; sets the duration of the variable;; line commands