I've got auto-complete package working for functions for *.R files, but now I'm struggling with auto-complete for file paths.
I've bound the "TAB" key to:
(global-set-key (kbd "TAB") 'ac-complete-filename)
And it does work after "/" symbol as suggested here. However it works only on new line. As in:
And it does not work from within a function such as:
Placing pointer after "/" when anything precedes it does not do anything. Any suggestions?
Changing binding to ess-mode instead of global fixed it. Why? No idea...
(define-key ess-mode-map (kbd "TAB") 'ac-complete-filename)