From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Fwd: A few Emacs newbie questions, need oldbie answers :) (fwd) Date: Mon, 26 Apr 2004 12:05:29 -0600 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <408D4F69.6030806@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1083003627 12685 80.91.224.253 (26 Apr 2004 18:20:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Apr 2004 18:20:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 26 20:20:18 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIAiH-0000zl-00 for ; Mon, 26 Apr 2004 20:20:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIAhC-0002ly-M4 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Apr 2004 14:19:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 77 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: news.uni-berlin.de 1083002709 13408046 I 170.207.51.80 ([82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: shelby.stanford.edu gnu.emacs.help:122729 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:18017 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18017 Deboo wrote: > I'm using debian linux and the lisp files are in > /usr/share/emacs/site-lisp directory. Some files here are names > xxxx-el, some just xxxx, and some as xxxx.el, whereas some > others as xxxx.elc . I don't understand lisp or programming so I dont > know what is the difference, but could I move this directory to > my home directory and inform emacs somehow that this directory > is in my home dir? The convention is that Emacs Lisp files are named .el and byte-compiled Emacs Lisp files are named .elc. Anything is in your site-lisp directory is, well, unconventional. You could move those files to your home directory with the mv or cp and rm commands, and then inform Emacs like this: (setq load-path (cons "~" load-path)) ... > Well, I researched on this one a bit. I read the info docs and > saw emacs-goodies-el has a cycle-buffer-forward and > cycle-buffer-backward commands and we can bind these to M-N and > M-P in .emacs, according to the info, but when I do this and > start emacs, I get errors pointing me to these lines. When I > remove the macros, emacs starts okay. Can anything be done so > that these bindings work? You would have to show us what you put in your .emacs file and exactly what error was reported. ... > How would I put this in .emacs so emacs always has word-wrap on? > Would this be a nice thing to do? Try this and see if you like it: (add-hook 'text-mode-hook 'turn-on-auto-fill) ... > I found another way to do it. Putting "-*- todoo -*-" on first > line ( or second line if the first contains #!/bin/sh), and then > opening any such file, would automatically put the file in that > mode. I tried using two modes instead of one but that didn't > have any success. Each buffer is in exactly 1 major mode. You can turn on additional minor modes via the major mode's hook variable, e.g. the text-mode-hook variable and the turn-on-auto-fill function above. ... > Why does Emacs load all files in to the scratch buffer? If it's a file, > and we've modified it, emacs asks us to save it before quitting but > doesn't ask any such thing if we've typed in to the scratch buffer. > How to autosave the scratch buffer? Sometimes I jot down something useful, > in to the scratch buffer when there's no time to think of a filename etc. "auto-save" means something specific in Emacs. What you want to do is to associate the *scratch* buffer with a file. Since your .emacs file is executed in the *scratch* buffer, try this: (set-visited-file-name "~/.scratch") ... > How to print from emacs, in color (with background, foreground and > syntax-highlight colors)? M-x ps-print-buffer-with-faces (also available on the File menu bar, under Postscript Print Buffer). -- Kevin Rodgers