Switch last 'define-key's to 'bind-key'

This commit is contained in:
Adam Goldsmith 2018-11-06 12:10:47 -05:00
parent ce2d2cf604
commit 9560dfeb33

View File

@ -146,7 +146,7 @@
#'(lambda () (not (member major-mode '(c-mode cc-mode java-mode))))) #'(lambda () (not (member major-mode '(c-mode cc-mode java-mode)))))
(eval-after-load "cc-mode" (eval-after-load "cc-mode"
'(define-key c-mode-map (kbd "M-.") 'semantic-ia-fast-jump))) '(bind-key "M-." 'semantic-ia-fast-jump c-mode-map)))
(use-package term (use-package term
:config :config
@ -294,7 +294,7 @@
(use-package avy :ensure (use-package avy :ensure
:config :config
(eval-after-load "isearch" (eval-after-load "isearch"
'(define-key isearch-mode-map (kbd "C-'") 'avy-isearch)) '(bind-key "C-'" 'avy-isearch isearch-mode-map))
:bind (("C-;" . avy-goto-char) :bind (("C-;" . avy-goto-char)
("C-'" . avy-goto-char-2))) ("C-'" . avy-goto-char-2)))
@ -650,8 +650,8 @@
(add-hook 'LaTeX-mode-hook (add-hook 'LaTeX-mode-hook
'(lambda () '(lambda ()
(yas-minor-mode) (yas-minor-mode)
(define-key company-active-map "<backtab>" 'company-to-yasnippet) (bind-key "<backtab>" 'company-to-yasnippet company-active-map)
(define-key (current-local-map) "<backtab>" 'company-yasnippet))) (bind-key "<backtab>" 'company-yasnippet) (current-local-map)))
:config :config
(yas-reload-all) (yas-reload-all)
(defun company-to-yasnippet () (defun company-to-yasnippet ()