all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: How to change default "insert file" path /tmp to home directory?
Date: Mon, 13 May 2013 17:48:54 -0400	[thread overview]
Message-ID: <barmar-30C63C.17485413052013@news.eternal-september.org> (raw)
In-Reply-To: avd31vFdl82U1@mid.individual.net

In article <avd31vFdl82U1@mid.individual.net>, gerlach <jack@aiai.de> 
wrote:

> Am 10.05.2013 23:02, schrieb Pascal J. Bourguignon:
> > gerlach <jack@aiai.de> writes:
> >
> >> Hi,
> >> I googl'ed a lot and didn't find it: how can I change the default
> >> "insert path" (ctrl-x i) from /tmp to e.g.  /home/gerlach  ?
> >
> > M-: (setq default-directory "/home/gerlach/") RET
> >
> >
> 
> i state today that its any longer working! Default directory is /tmp 
> once again. At least in Why?
> 
> my /home/gerlach/.emacs
> (setq fill-column 50)
> (add-hook 'before-save-hook 'delete-trailing-whitespace)
> (setq default-directory "/home/gerlach/")
> 
> 
> BTW: (setq fill-column 50)  is ignored. Even if I insert 20 instead of 
> 50. Why?

fill-column is a buffer-local variable. Use setq-default to set the 
default value for new buffers.

And as I mentioned in another reply, default-directory is also 
buffer-local. However, it doesn't help much to set its default value, 
because it's automatically changed to the directory containing the file 
you're editing. You can use setq-default, but that will only work for 
buffers that aren't editing files.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


  parent reply	other threads:[~2013-05-13 21:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-10 20:23 How to change default "insert file" path /tmp to home directory? gerlach
2013-05-10 20:48 ` Peter Dyballa
2013-05-10 21:02 ` Pascal J. Bourguignon
2013-05-10 21:14   ` gerlach
2013-05-13 21:08   ` gerlach
2013-05-13 21:31     ` gerlach
2013-05-13 21:40     ` Peter Dyballa
2013-05-13 21:48     ` Barry Margolin [this message]
2013-05-11  0:50 ` Barry Margolin
2013-05-14  9:52   ` gerlach
2013-05-14 13:44     ` Suvayu Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-30C63C.17485413052013@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.