[Init] Don’t override key bindings when ‘avy’ is not present

This commit is contained in:
Daniel - 2019-03-02 09:45:31 +01:00
parent abbd29c534
commit be8d5a3f0f
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 4 additions and 2 deletions

View File

@ -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