On May 16, 12:58 am, Glen Stampoultzis <gst...@gmail.com> wrote:
> The other problem I have is with the current working directory.  The swank
> process seems to use my home directory as the current working
> directory regardless of what the current working directory of emacs
> currently is.  Is there any way to set this and to manage it on a per
> project basis?

I agree, this is a big annoyance.  You can put something like this in
your ~/.emacs to prevent Emacs from changing your working directory
every time you switch buffers, so once you set it with M-x cd, it'll
never change until you change it explicitly.  Better than nothing.

(defun find-file-save-directory ()
    (interactive)
    (setq saved-default-directory default-directory)
    (ido-find-file)
    (setq default-directory saved-default-directory))
(global-set-key "\C-x\C-f" 'find-file-save-directory)

Change ido-find-file to whatever command you use normally to open
files.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to