Closed barik closed 10 years ago
My apologies, I wasn't aware auctex used these keybindings. I'll implement a way around it in a moment.
If you'd like to fix this for now, you can copy the source of latex/setup-keybinds
to your .emacs and remove the line that binds the C-c C-f
key. (You'll have to do that before the line that calls (latex/setup-keybinds)
of course.)
Ok, here's what's been done.
You can now access the font map via the C-c f
key (instead of C-c C-f
). I've also altered the font map so that you can acess its features without having to hold down control.
For isntance, before, you had to do C-c C-f C-b
to get bold text. Now, you can do C-c f b
.
I feel like that's a little easier to type.
If you still prefer to keep fonts under the C-c C-f
keybind, then you can set the variable latex/override-font-map
to nil (before invoking latex/setup-keybinds
). This will keep the C-c C-f
intact, and then it will be up to you to bind latex/next-section-same-level
to some other key.
I'm quite happy with this outcome, hopefully you'll be too. Cheers
Thanks for this useful package, I really appreciate your work.
Since I got bitten by the same problem, I would suggest to document the latex/override-font-map
variable in the README file.
All the best,
Done. Thanks for the tip.
Where can I modify the C-c f to be other bindings? Since C-c f in my case means look for a file and I want to keep it as well.
You can bind C-c f to nil in LaTeX-mode-map. You need to do that after calling latex/setup-keybind.
Overall, it's recommended you use C-x for global bindings. No mode will ever touch that, while C-c is used by major and minor modes.
I may be doing something wrong, but it appears that latex-extra is using
latex/next-section-same-level
asC-c C-f
when executing(eval-after-load 'latex '(latex/setup-keybinds))
. AUCTeX is already using this for inserting fonts, e.g.,C-c C-f C-b
for bold. Is it possible to make the default a different key combination? Or what is the best way to load latex-extra without overwriting the existing AUCTeX key combination?