LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-19-2006, 08:24 AM   #1
Lorend
Member
 
Registered: Feb 2005
Location: Wisconsin
Distribution: Fedora Core 5, Knoppix, Suse 10
Posts: 37

Rep: Reputation: 15
Question 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.
 
Old 08-19-2006, 04:47 PM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
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.
 
Old 08-19-2006, 04:55 PM   #3
Lorend
Member
 
Registered: Feb 2005
Location: Wisconsin
Distribution: Fedora Core 5, Knoppix, Suse 10
Posts: 37

Original Poster
Rep: Reputation: 15
emacs question

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

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 02:05 PM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 08:36 AM
saving file darkangel29 Linux - Newbie 2 11-25-2004 01:16 PM
Saving as a file in C++ dfownz Programming 3 07-03-2004 08:39 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration