diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3161c37..fdfc497 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -146,7 +146,7 @@ #'(lambda () (not (member major-mode '(c-mode cc-mode java-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 :config @@ -294,7 +294,7 @@ (use-package avy :ensure :config (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) ("C-'" . avy-goto-char-2))) @@ -650,8 +650,8 @@ (add-hook 'LaTeX-mode-hook '(lambda () (yas-minor-mode) - (define-key company-active-map "" 'company-to-yasnippet) - (define-key (current-local-map) "" 'company-yasnippet))) + (bind-key "" 'company-to-yasnippet company-active-map) + (bind-key "" 'company-yasnippet) (current-local-map))) :config (yas-reload-all) (defun company-to-yasnippet ()