# ^ is giving \uparrow instead of \hat in AUCTeX with CDLaTeX

I am very new to Emacs using AUCTeX + the minor mode CDLaTeX to type math documents. According to what I read in Auctex reference card the keybinding ^ should give me \hat but this is giving \uparrow instead, please help me to understand. Also please tell me how to get \hat{.} (. represents the cursor).

• @Drew are you able to get my question now? – Tiju Cherian John Mar 9 '16 at 5:17
• Try C-h k ^, to at least tell us what that key is bound to. You can also search the Auctex and cdlatex code for that command, to see where it might be bound to that key. Do you see the problem if you only use one of the two (Auctex and cdlatex)? – Drew Mar 9 '16 at 5:25
• You should check the values of the variables LaTeX-math-list and LaTeX-math-default: in a LaTeX buffer issues the commands C-h v LaTeX-math-list RET and C-h v LaTeX-math-default RET. Paste the values of those variables in the question – giordano Mar 9 '16 at 6:59
• By default auctex should give \hat{.} from that keybinding. However, cdlatex changes a number of bindings and its way to enter such an accent is via '^ after the content you wish to put in the braces. See the source file of cdlatex at github.com/cdominik/cdlatex which documents this. – Andrew Swann Mar 9 '16 at 7:58
• thank you all for the comments, it is working after cdlatex mode is turned off. @giordano I think I am not up to that level to understand your comment. – Tiju Cherian John Mar 9 '16 at 11:58

By default auctex should give \hat{.} from that keybinding. However, cdlatex changes a number of bindings and its way to enter such an accent is via '^ after the content you wish to put in the braces, e.g.
a'^

gives \hat{a}. Examples such as ab'^ also work giving \hat{ab}.
See the source file of cdlatex at http://github.com/cdominik/cdlatex which documents this.