From bcaa2a1ae1514666b6f9bd7d6137c488313567f4 Mon Sep 17 00:00:00 2001 From: Alexey Norets Date: Thu, 18 Dec 2025 22:14:13 +0300 Subject: [PATCH] add new keybind to `avy-goto-char` and `avy-goto-word` --- init.el | 39 +++++++++------------------------------ 1 file changed, 9 insertions(+), 30 deletions(-) diff --git a/init.el b/init.el index 050d3c1..963be4f 100644 --- a/init.el +++ b/init.el @@ -185,6 +185,8 @@ (fg-line-number-active "#ffdd33") (bg-line-number-active "#181818") (bg-line-number-inactive "#181818") + (border-mode-line-active unspecified) + (border-mode-line-inactive unspecified) ;; SRC-block (bg-prose-block-delimiter bg-inactive) ;; Region bg and fg @@ -214,25 +216,6 @@ (define-key global-map (kbd "C-c n f") #'consult-denote-find) (define-key global-map (kbd "C-c n g") #'consult-denote-grep)) -;; Org-roam. ------ -;; (use-package org-roam -;; :ensure t -;; :custom -;; (org-roam-directory (file-truename "/Users/norets/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/Org-roam/pages")) -;; :bind (("C-c n l" . org-roam-buffer-toggle) -;; ("C-c n f" . org-roam-node-find) -;; ("C-c n g" . org-roam-graph) -;; ("C-c n i" . org-roam-node-insert) -;; ("C-c n c" . org-roam-capture) -;; ;; Dailies -;; ("C-c n j" . org-roam-dailies-capture-today)) -;; :config -;; ;; If you're using a vertical completion framework, you might want a more informative completion interface -;; (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag))) -;; (org-roam-db-autosync-mode) -;; ;; If using org-roam-protocol -;; (require 'org-roam-protocol)) - (use-package vertico :ensure t :init @@ -352,8 +335,9 @@ )) (display-buffer-reuse-mode-window display-buffer-pop-up-window) (body-function . my-select-window) - (dedicated . t) - (preserve-size . (t . t))))) + ;; (dedicated . t) + ;; (preserve-size . (t . t)) + ))) ;; Marginalia. ----- (use-package marginalia @@ -406,13 +390,6 @@ :init (global-corfu-mode)) -(use-package corfu-terminal - :ensure t - :defer 3 - :init - (unless (display-graphic-p) - (corfu-terminal-mode +1))) - ;; Add extensions (use-package cape :ensure t @@ -551,8 +528,10 @@ (global-set-key (kbd "C-z") 'move-text-down) (global-set-key (kbd "C-q") 'move-text-up) -(global-set-key (kbd "C-c t c") 'avy-goto-char) -(global-set-key (kbd "C-c t w") 'avy-goto-word-0) +;; (global-set-key (kbd "C-c t c") 'avy-goto-char) +(global-set-key (kbd "C-'") 'avy-goto-char) +;; (global-set-key (kbd "C-c t w") 'avy-goto-word-0) +(global-set-key (kbd "C-,") 'avy-goto-word-0) ;;; Functions. -----