fix(emacs): use keymap-local-set
instead of local-set-key
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
0e37bfae2c
commit
17b05d5d26
3 changed files with 18 additions and 18 deletions
|
@ -16,9 +16,9 @@
|
|||
|
||||
(defun configure-c++ ()
|
||||
"Configure my custom C++ enviroment."
|
||||
(local-set-key (kbd "C-c C-c") #'custom-compile-c++)
|
||||
(local-set-key (kbd "C-c C-r") #'custom-run-c++)
|
||||
(local-set-key (kbd "C-c C-.") #'company-complete))
|
||||
(keymap-local-set "C-c C-c" #'custom-compile-c++)
|
||||
(keymap-local-set "C-c C-r" #'custom-run-c++)
|
||||
(keymap-local-set "C-c C-." #'company-complete))
|
||||
|
||||
(add-hook 'c-mode-hook #'configure-c++)
|
||||
(add-hook 'c++-mode-hook #'configure-c++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue