[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I preload my ~/.emacs source for editing only?

From: jpkotta
Subject: Re: Can I preload my ~/.emacs source for editing only?
Date: Wed, 5 May 2010 13:08:14 -0700 (PDT)
User-agent: G2/1.0

On May 4, 12:08 pm, (Pascal J. Bourguignon)
> jpkotta <> writes:
> > On May 4, 5:07 am, (Pascal J. Bourguignon)
> > wrote:
> >> Bill <> writes:
> >> > When emacs is running I can C-x C-f to load my ~/.emacs source into a
> >> > buffer for editing. That is easy enough, but I would like to know how
> >> > to do it programmaticaly so it preloads on startup. Using (load "path-
> >> > to-dot-emacs") makes emacs protest about redundant evaluation. This
> >> > newbie just wants to edit, not evaluate.
> >> When you want to know what commande hides behind a keychoard, you can
> >> use C-h k
> >> Type C-h k C-x C-f
> >> and see what command is used to find a file and edit it.  
> >> You can then insert a form using this command in your ~/.emacs, such
> >> as:
> >>   (find-file "~/.emacs")
> >> The opposite of C-h k is C-h w which tells you where (to which
> >> keychoards) a command is bound.  For example, C-h w find-file RET
> >> displays in the minibuffer:
> >> find-file is on <open>, C-x C-f, <menu-bar> <file> <new-file>
> > The variable `user-init-file' always points to the user's init file,
> > whatever it might be named.  For example, I use ~/.emacs.d/init.el
> > instead of ~/.emacs.
> What's the point,  if ~/.emacs.d still starts with a dot?
> And if "~/.emacs" is mapped to the right file on all platforms by emacs?

I'd rather have everything in one directory.  At the very least it
makes completion easier because only one thing in my home starts with

> (Otherwise, thanks for the hint, it would be good to use it in emacs
> lisp libraries if need to access the init file occurs).
> --
> __Pascal Bourguignon__

reply via email to

[Prev in Thread] Current Thread [Next in Thread]