How to rewrite the double quote key to just insert the double quote in the LaTeX buffer with AUCTex enabled?
I tried to redefine the open and closed TeX quote, but that didn't seem to work.
(add-hook 'LaTeX-mode-hook
'(progn
(setq-default TeX-close-quote "\"")
(setq-default tex-close-quote "\"")
(setq-default TeX-open-quote "\"")
(setq-default tex-open-quote "\"")
(setq-default TeX-quote-after-quote t)))
Update
The above code and the accepted answer would work, except that I have it enabled smartparens. Smartparens helps redefine the quote key to insert LaTeX quotes. The code for using regular quotes is shown below:
(eval-after-load 'latex
'(progn
(require 'smartparens-latex)
;; removes the double quote trigger binding. Now smartparens will
;; insert a regular double quote
(sp-local-pair 'latex-mode "``" "''" :trigger "\"" :actions :rem)))
source
share