* newbie question about .emacs initialization file
@ 2004-06-24 16:39 Edward Casey
2004-06-27 16:32 ` John Paul Wallington
0 siblings, 1 reply; 2+ messages in thread
From: Edward Casey @ 2004-06-24 16:39 UTC (permalink / raw)
I recenty downloaded Gnu emacs for Windows (using Win 98). Since Dos-based
systems allow only three characters for a file-name suffix, how do I get
lisp functions, etc. into the environment during loading? Do I have to do
a load-file after emacs is up and running? What is the init file name
under MS Windows?
I put the file macron.el into the site-lisp subdirectory. This goes
something like this:
;;*- coding: emacs-mule -*-
(defun macronize-char (event) "Place a macron over the vowel at point,
or where the mouse is clicked."
(interactive "e")
(if (and (listp event)
(member (event-basic-type event)
'(mouse-1 mouse-2 mouse-3)))
(mouse-set-point event))
(let ((c (char-after (point))))
(cond
((eq c ?a) (delete-char) (insert ?ā))
((eq c ?e) (delete-char) (insert ?ē))
((eq c ?i) (delete-char) (insert ?ī))
((eq c ?o) (delete-char) (insert ?ō))
((eq c ?u) (delete-char) (insert ?ū)))))
(define-key global-map [f12] 'macronize-char)
(define-key global-map [(meta mouse-1)] 'macronize-char)
This is obviously not newbie fodder but was provided by a kind coder on
another newsgroup. I would like to have mouse-1 instead of meta mouse-1
toggle the character at point from macroned to plain (un-macroned). Then
f12 or some other key would toggle to bind and unbind the lisp function to
mouse-1. Is that as clear as mud?
Thanks,
Ed
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: newbie question about .emacs initialization file
2004-06-24 16:39 newbie question about .emacs initialization file Edward Casey
@ 2004-06-27 16:32 ` John Paul Wallington
0 siblings, 0 replies; 2+ messages in thread
From: John Paul Wallington @ 2004-06-27 16:32 UTC (permalink / raw)
"Edward Casey" <ejmn@cpinternet.com> writes:
> I recenty downloaded Gnu emacs for Windows (using Win 98). Since Dos-based
> systems allow only three characters for a file-name suffix, how do I get
> lisp functions, etc. into the environment during loading? Do I have to do
> a load-file after emacs is up and running? What is the init file name
> under MS Windows?
You can have a .emacs file in Windows 98. It can be named either
_emacs or .emacs, and should be placed in your "home" directory. If
you have both files in your home directory, Emacs will load the .emacs
file and ignore _emacs. Your home directory is where the HOME
configuration variable tells Emacs it is.
See
http://www.gnu.org/software/emacs/windows/faq3.html#startup
for more details.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-27 16:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 16:39 newbie question about .emacs initialization file Edward Casey
2004-06-27 16:32 ` John Paul Wallington
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).