add new keybind to avy-goto-char and avy-goto-word
This commit is contained in:
parent
68de344731
commit
bcaa2a1ae1
39
init.el
39
init.el
@ -185,6 +185,8 @@
|
|||||||
(fg-line-number-active "#ffdd33")
|
(fg-line-number-active "#ffdd33")
|
||||||
(bg-line-number-active "#181818")
|
(bg-line-number-active "#181818")
|
||||||
(bg-line-number-inactive "#181818")
|
(bg-line-number-inactive "#181818")
|
||||||
|
(border-mode-line-active unspecified)
|
||||||
|
(border-mode-line-inactive unspecified)
|
||||||
;; SRC-block
|
;; SRC-block
|
||||||
(bg-prose-block-delimiter bg-inactive)
|
(bg-prose-block-delimiter bg-inactive)
|
||||||
;; Region bg and fg
|
;; 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 f") #'consult-denote-find)
|
||||||
(define-key global-map (kbd "C-c n g") #'consult-denote-grep))
|
(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
|
(use-package vertico
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
@ -352,8 +335,9 @@
|
|||||||
))
|
))
|
||||||
(display-buffer-reuse-mode-window display-buffer-pop-up-window)
|
(display-buffer-reuse-mode-window display-buffer-pop-up-window)
|
||||||
(body-function . my-select-window)
|
(body-function . my-select-window)
|
||||||
(dedicated . t)
|
;; (dedicated . t)
|
||||||
(preserve-size . (t . t)))))
|
;; (preserve-size . (t . t))
|
||||||
|
)))
|
||||||
|
|
||||||
;; Marginalia. -----
|
;; Marginalia. -----
|
||||||
(use-package marginalia
|
(use-package marginalia
|
||||||
@ -406,13 +390,6 @@
|
|||||||
:init
|
:init
|
||||||
(global-corfu-mode))
|
(global-corfu-mode))
|
||||||
|
|
||||||
(use-package corfu-terminal
|
|
||||||
:ensure t
|
|
||||||
:defer 3
|
|
||||||
:init
|
|
||||||
(unless (display-graphic-p)
|
|
||||||
(corfu-terminal-mode +1)))
|
|
||||||
|
|
||||||
;; Add extensions
|
;; Add extensions
|
||||||
(use-package cape
|
(use-package cape
|
||||||
:ensure t
|
:ensure t
|
||||||
@ -551,8 +528,10 @@
|
|||||||
(global-set-key (kbd "C-z") 'move-text-down)
|
(global-set-key (kbd "C-z") 'move-text-down)
|
||||||
(global-set-key (kbd "C-q") 'move-text-up)
|
(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 c") 'avy-goto-char)
|
||||||
(global-set-key (kbd "C-c t w") 'avy-goto-word-0)
|
(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. -----
|
;;; Functions. -----
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user