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
|
@ -21,19 +21,19 @@
|
|||
(display-fill-column-indicator-mode 1)
|
||||
(set-fill-column 100)
|
||||
|
||||
(local-set-key (kbd "C-c C-z") #'custom-compile-latex)
|
||||
(local-set-key (kbd "C-c C-b") #'latex-insert-block)
|
||||
(local-set-key (kbd "C-c C-h")
|
||||
(lambda ()
|
||||
(interactive)
|
||||
(unless (texmathp)
|
||||
(insert "\\(\\)")
|
||||
(backward-char 2))))
|
||||
(local-set-key (kbd "C-c C-/")
|
||||
(lambda ()
|
||||
(interactive)
|
||||
(when (texmathp)
|
||||
(LaTeX-math-frac))))
|
||||
(keymap-local-set "C-c C-z" #'custom-compile-latex)
|
||||
(keymap-local-set "C-c C-b" #'latex-insert-block)
|
||||
(keymap-local-set "C-c C-h"
|
||||
(lambda ()
|
||||
(interactive)
|
||||
(unless (texmathp)
|
||||
(insert "\\(\\)")
|
||||
(backward-char 2))))
|
||||
(keymap-local-set "C-c C-/"
|
||||
(lambda ()
|
||||
(interactive)
|
||||
(when (texmathp)
|
||||
(LaTeX-math-frac))))
|
||||
(keymap-substitute cdlatex-mode-map 'cdlatex-dollar 'cdlatex-math-symbol)
|
||||
(setq cdlatex-math-symbol-prefix ?$)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue