[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can I preload my ~/.emacs source for editing only?
From: |
Pascal J. Bourguignon |
Subject: |
Re: Can I preload my ~/.emacs source for editing only? |
Date: |
Tue, 04 May 2010 12:07:52 +0200 |
User-agent: |
Gnus/5.101 (Gnus v5.10.10) Emacs/23.1 (darwin) |
Bill <bsagert@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