I use this code snippet taken from some forum to complete the file path at point on pressing, C-M-/
.
(defun my-expand-file-name-at-point ()
"Use hippie-expand to expand the filename"
(interactive)
(let ((hippie-expand-try-functions-list '(try-complete-file-name-partially try-complete-file-name)))
(call-interactively 'hippie-expand)))
It works good most of the time. On occassions, i use bash environment variables like $WS_HOME, $PROJ
inside my shell scripts to keep the path concise.
Is there a way hippie-file-name-complete
can understand the environment variables, that contain file paths and list out possible completions from there?