From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Edward Casey" Newsgroups: gmane.emacs.help Subject: newbie question about .emacs initialization file Date: Thu, 24 Jun 2004 11:39:59 -0500 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <10dm0v6q720iq8a@corp.supernews.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1088538400 26317 80.91.224.253 (29 Jun 2004 19:46:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:46:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:46:29 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfOYn-0000CX-00 for ; Tue, 29 Jun 2004 21:46:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfOaS-0004fQ-Uy for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:48:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!newsfeed2.easynews.com.MISMATCH!newsfeed3.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-02!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 37 Original-Xref: shelby.stanford.edu gnu.emacs.help:123937 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19297 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19297 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