all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jpkotta <jpkotta@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Can I preload my ~/.emacs source for editing only?
Date: Tue, 4 May 2010 08:16:12 -0700 (PDT)	[thread overview]
Message-ID: <d396243d-ddcf-46b6-898f-c1c22a69d23e@a21g2000yqn.googlegroups.com> (raw)
In-Reply-To: lz4oio9dzb.fsf@informatimago.com

On May 4, 5:07 am, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> Bill <bsag...@gmail.com> 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>
>
> --
> __Pascal Bourguignon__http://www.informatimago.com

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.


  reply	other threads:[~2010-05-04 15:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-04  7:05 Can I preload my ~/.emacs source for editing only? Bill
2010-05-04  7:29 ` David Kastrup
2010-05-04 10:07 ` Pascal J. Bourguignon
2010-05-04 15:16   ` jpkotta [this message]
2010-05-04 17:08     ` Pascal J. Bourguignon
2010-05-05 20:08       ` jpkotta
2010-05-05 23:11 ` Steven Knight

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=d396243d-ddcf-46b6-898f-c1c22a69d23e@a21g2000yqn.googlegroups.com \
    --to=jpkotta@gmail.com \
    --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.