例如,如果 myA.txt
包含以下行:
summary is at: /summary/is/at/summary.txt
如何打開summary.txt
而無需複製貼上路徑,或在之後寫入整個路徑C-x C-f
?
答案1
您可以使用該find-file-at-point
功能:
A.txt
使用 Emacs開啟;將遊標移到中間某處
/summary/is/at/summary.txt
M-x find-file-at-point
您可能想要為其設定快捷方式,添加到您的~/.emacs
,例如:
(global-set-key (kbd "M-p") 'find-file-at-point)