[Init] Don’t override key bindings when ‘avy’ is not present
This commit is contained in:
parent
abbd29c534
commit
be8d5a3f0f
6
init.el
6
init.el
|
@ -212,8 +212,6 @@
|
|||
(bind-key "M-=" #'count-words)
|
||||
(bind-key "M-SPC" #'cycle-spacing)
|
||||
(bind-key "M-Z" #'zap-to-char)
|
||||
(bind-key "M-g M-g" #'avy-goto-line)
|
||||
(bind-key "M-g g" #'avy-goto-line)
|
||||
(bind-key "M-g j b" #'dumb-jump-back)
|
||||
(bind-key "M-g j g" #'dumb-jump-go)
|
||||
(bind-key "M-j" #'(lambda () (interactive) (join-line -1)))
|
||||
|
@ -246,6 +244,10 @@
|
|||
(when (executable-find "ag")
|
||||
(bind-key "<f5>" #'counsel-ag))
|
||||
|
||||
(when (package-installed-p 'avy)
|
||||
(bind-key "M-g M-g" #'avy-goto-line)
|
||||
(bind-key "M-g g" #'avy-goto-line))
|
||||
|
||||
;; Environment Variables
|
||||
|
||||
(unless on-windows
|
||||
|
|
Loading…
Reference in New Issue