LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   saving a file in emacs (https://www.linuxquestions.org/questions/linux-general-1/saving-a-file-in-emacs-475354/)

Lorend 08-19-2006 08:24 AM

saving a file in emacs
 
I am wondering how I can change where the file gets saved when using emacs??
I am writing PHP code and when I save the file it automatically gets saved in my folder, I want to set it so that I can save it in any folder, specifically var/www/html folder.

Thanks in advance for any advice you may provide.:)

KenJackson 08-19-2006 04:47 PM

Press CTRL-x CTRL-w to get to the "Write file:" prompt.

Then you can edit the path using normal emacs keys. For example, press CTRL-a to get to the start of the path name, and CTRL-k to delete it, then type the path and filename you want.

And, of course, CTRL-g lets you abort the attempt so you can return to the document and think about it.

Lorend 08-19-2006 04:55 PM

emacs question
 
Thanks a lot Ken, that is exactly the answer I was looking for.

:D


All times are GMT -5. The time now is 02:27 PM.