Skip to content

Instantly share code, notes, and snippets.

@diasjorge
Created June 9, 2009 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diasjorge/126886 to your computer and use it in GitHub Desktop.
Save diasjorge/126886 to your computer and use it in GitHub Desktop.
(defun insert-path ()
"Inserts a path into the buffer with completion"
(interactive)
(insert (expand-file-name (read-file-name "Path: "))))
(defun insert-path (file)
"insert file"
(interactive "FPath: ")
(insert (expand-file-name file)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment