1
0
Fork 0

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:
Lucas Sta Maria 2024-01-23 16:36:38 -05:00
parent 0e37bfae2c
commit 17b05d5d26
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
3 changed files with 18 additions and 18 deletions

View file

@ -16,9 +16,9 @@
(defun configure-c++ () (defun configure-c++ ()
"Configure my custom C++ enviroment." "Configure my custom C++ enviroment."
(local-set-key (kbd "C-c C-c") #'custom-compile-c++) (keymap-local-set "C-c C-c" #'custom-compile-c++)
(local-set-key (kbd "C-c C-r") #'custom-run-c++) (keymap-local-set "C-c C-r" #'custom-run-c++)
(local-set-key (kbd "C-c C-.") #'company-complete)) (keymap-local-set "C-c C-." #'company-complete))
(add-hook 'c-mode-hook #'configure-c++) (add-hook 'c-mode-hook #'configure-c++)
(add-hook 'c++-mode-hook #'configure-c++) (add-hook 'c++-mode-hook #'configure-c++)

View file

@ -21,19 +21,19 @@
(display-fill-column-indicator-mode 1) (display-fill-column-indicator-mode 1)
(set-fill-column 100) (set-fill-column 100)
(local-set-key (kbd "C-c C-z") #'custom-compile-latex) (keymap-local-set "C-c C-z" #'custom-compile-latex)
(local-set-key (kbd "C-c C-b") #'latex-insert-block) (keymap-local-set "C-c C-b" #'latex-insert-block)
(local-set-key (kbd "C-c C-h") (keymap-local-set "C-c C-h"
(lambda () (lambda ()
(interactive) (interactive)
(unless (texmathp) (unless (texmathp)
(insert "\\(\\)") (insert "\\(\\)")
(backward-char 2)))) (backward-char 2))))
(local-set-key (kbd "C-c C-/") (keymap-local-set "C-c C-/"
(lambda () (lambda ()
(interactive) (interactive)
(when (texmathp) (when (texmathp)
(LaTeX-math-frac)))) (LaTeX-math-frac))))
(keymap-substitute cdlatex-mode-map 'cdlatex-dollar 'cdlatex-math-symbol) (keymap-substitute cdlatex-mode-map 'cdlatex-dollar 'cdlatex-math-symbol)
(setq cdlatex-math-symbol-prefix ?$) (setq cdlatex-math-symbol-prefix ?$)

View file

@ -12,8 +12,8 @@
(setq auto-mode-alist (cons '("\\.pmd$" . pollen-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.pmd$" . pollen-mode) auto-mode-alist))
(defun configure-scribble () (defun configure-scribble ()
"Configure keybinds for scribble" "Configure keybinds for scribble."
(local-set-key (kbd "C-c C-c") #'compile)) (keymap-local-set "C-c C-c" #'compile))
(add-hook 'scribble-mode-hook #'configure-scribble) (add-hook 'scribble-mode-hook #'configure-scribble)