elisp - Open file from Emacs terminal without find-file -


if i'm in term-mode buffer , there file path displayed, how go making path "clickable", opening file in new buffer? doesn't have mouse-clickable, in fact i'd prefer key binding works when point on file path. other common case of using ls, function used when viewing log file. debug info contains file path , line number. lib/library.rb:34 example. ideally, emacs open new buffer , move cursor line 34.

the short answer is: don't work against emacs. let emacs work you.

while can use find-file-at-point or put yourself, better off running make, grep , other stuff prints "dir/file:pos" using m-x compile or m-x grep.

  • if need interact program prints "dir/file:pos", can pass prefix argument compile , compilation buffer interactive.

  • if have arbitrary program output starts "dir/file:pos", e.g., rails server, need run (grep "rails server").


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -