Emacs key binding for isearch-forward -


i'm using emacs v24.3 on windows 7. i'm trying learn how remap key bindings.

i've created .emacs file in home directory , contains 1 line:

 (global-set-key (kbd "c-f") 'isearch-forward) 

i start emacs runemacs.exe. find non-existant file, type words (click @ start of text) , type c-f find. i-search: prompt displays , can incrementally search text. far go.

the problem is, if behavior suppose same default isearch-forward keystroke, c-s, isn't. when type c-f second time search next occurance of string, thing happens i-search prompt appears in minibuffer.

i'm not able search next occurance of string. additionally, del key suppose repeate search in reverse direction. not happen me when search using c-f (though when search using c-s.).

so single key mapping seems break 2 things. mapping wrong? or these bugs? if i'm mapping wrong, how map c-f isearch-forward command?

along 1 line, add:

(define-key isearch-mode-map "\c-f" 'isearch-repeat-forward) 

the issue isearch has own bindings active once start incremental search. adding expression above remaps binding isearch-repeat-forward.

if you're curious these bindings, can enter c-h b while doing incremental search examine full keymap.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -