I am writing latex code with AUCTEX. I very often highlight text in bold or italics.
For instance, AUCTEX comes with the command C-c C-f C-e
, wich can be used to emphasize text in an active marked region. That is, it would replace the marked text text
with \emph{text}
.
I used Aquamacs before, where I was able to hold the CMD
key, and then press c
, then f
, then e
within some reasonable time (a few seconds). Then the mode line would show that the sequence C-c C-f C-e
was entered, and perform the correct command.
I switched to Gnu Emacs on MacOS recently, where this seems not to work as desired anymore. Concretely, it works only if I hold CMD, and then c
,f
,e
extremely quickly (so quickly that I fail 50% of my attempts).
Pressing C-c
, then releasing all keys, then C-f,
releasing all, then C-e
does not work either. Instead, the command bound to C-f
is executed, ignoring the prior C-c
.
Is this expected behavior of emacs?
The only non-standard keyboard configuration in my .emacs
is that I have re-bound the key C-f
for convenience as follows:
(global-set-key (kbd "C-f") 'isearch-forward)
(define-key isearch-mode-map "\C-f" 'isearch-repeat-forward)
However, I think this should not matter, provided that I have pressed C-c
immediately before C-f
?
I have tried to find a way to configure emacs to behave as described above for Aquamacs, but only found key chords, which seems to be something else. Thanks in advance for any help.