unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* RE: Fwd: A few Emacs newbie questions, need oldbie answers :) (fwd)
@ 2004-04-25  1:09 Deboo
  2004-04-27 16:14 ` Ryan Bowman
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Deboo @ 2004-04-25  1:09 UTC (permalink / raw)
  Cc: help-gnu-emacs

On Tue, Apr 20, 2004 at 01:00:52PM +0200, Daan Hoogland wrote:
>From: Daan Hoogland <emacs@onecht.net>
[Snip]
>>From: Jason Earl <jearl@wegointer.net>
>>Date: 20 april 2004 7:11:25 GMT+02:00
>>To: help-gnu-emacs@gnu.org
>>Subject: Re: A few Emacs newbie questions, need oldbie answers :)
>>
>>Deboo <emacs@debian.elitemail.org> writes:
>>
[Snip]
>>>       In emacs, how to search/get a lisp program (download) and how
>>>       to install it and how to load it? E.g., remind.el
>>
>>Most of the Emacs packages I use have Debian packages.  This makes
>>installing them as easy as a simple apt command.  However, I do have
>>some packages installed manually (and remind.el just happens to be one
>>of them).  Generally speaking the correct thing to do is to download
>>the .el files and then follow the instructions provided.  In the case
>>of remind.el that means adding a folder to your Emacs load path by
>>putting something similar to the following line in your .emacs file:
>>
>>(setq load-path (cons "~/emacs-lisp" load-path))
>>
>>You then simply put remind.el in this directory (~/emacs-lisp in my
>>case) and add:
>>
>>(require 'remind)
>>
>>to your .emacs file.  There are additional programs that need to be
>>installed for remind.el to work, but the instructions in the remind.el
>>file are pretty clear.

	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?

>>
>>>       What is the best reminder, PIM and todo list manager avaliable
>>>       for emacs (console)?
>>
>>I don't know about best, but I tend to use plain calendar for
>>organization, a plain text file for a todo list and bbdb for a PIM.  I
>>took a look at remind.el, planner.el, and others, but they were more
>>than I needed.  YMMV.
>>
	Actually I haven't really seen any console utility which would
	have many features or be a PIM sort of thing. Not like Evolution
	and Outlook but something decent for console. I wonder if a
	decent one exists. I remember having asked this question to bob
	on the debian irc channel, an year or so ago and got a response
	that he just uses emacs.


>>>       What is the best way to backup all of these emacs and other
>>>       programs' configs and data files?
>>
>>I tend to want backups of my entire home directory.  To create a
>>backup of my home directory (/home/jearl) in /tmp (you probably want
>>to store your backups someplace safer), I do:
>>
>>tar -jcvf ~/tmp/backup.tar.bz2 -C /home/ jearl
>>
>>On most any Linux system 'info tar' is your friend.  On any other
>>system 'man tar' should get the job done.  Of course, if you have
>>anything other than GNU tar then you'll have to work harder, other tar
>>programs generally aren't as featureful.  If you are using Windows,
>>install Cygwin.

	I will still need to think hard what I'll have to use for backup
	since my home directory is _large_.

>>I tend to cut and paste in Emacs using the keyboard (even in X
>>Windows).  Basically I do a C-<space> to set the mark, then I move my
>>point (cursor) to the end of the region I want to copy and when I have
>>selected the region I choose M-w to copy the region or C-w to cut
>>(kill) the region.  I then move the point to where I want to paste the
>>text and do a C-y to paste the text.  Subsequent M-y commands will
>>cycle through your kill-ring for older bits of text that you copied or
>>killed.


>>If you haven't taken a look at the Emacs tutorial hit 'C-h t' and
>>spend a bit of time learning some other basic Emacs tricks.

	I had actually gone thru it but it's been a long while and then
	I had stopped using emacs, just used t be fasinated and usd to
	install emacs and all the goodies and keep it in the show case
	and use vim. Well, even right now I'm using vim since it's the
	editor defined in mutt, but I'm pressing Ctrl-K to delete lines
	instead of pressing dd ... lol that's emacs inductance?


>>>       What is the best way (or the easiest way) to switch buffers?

>>I tend to do 'C-x b' to switch to the previous buffer or 'C-x C-b' for
>>a list of buffers.

	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?

>>>       Best thing I could use emacs under dos/windoze if I could, bu it
>>>       would be huge to be put on a mini CD. I haven't ever tried that
>>>       version, but would like to know user experiences.
>>
>>Actually a slimmed down Emacs isn't so big.

	For now I've put vim and jed, may be if I could find a small
	version of emacs, i would put that along.


>>>       How to auomatically spell-check while typing text?
>>
>>M-x flyspell-mode

	Very cool, and it seems to be fast. I don't know why vim becomes
	super slow in insert mode ... seems to have some problem with
	ispell/aspell. Wonder what is causing this.


>>>       How to use and set word-wrap in emacs?
>>
>>M-q or M-x auto-fill-mode

	How would I put this in .emacs so emacs always has word-wrap on?
	Would this be a nice thing to do?

>>>       How to use a console-based graphics viewer (zgv or fbi or feh)
>>>       from within emacs?
>>
>>No idea.  I tend to run X Windows on boxes where I want to view
>>graphics.

	It's alright for now to use zgv or the others but would love to
	have one under emacs. Maybe it would be a resource hog under emacs.
	I'll try searching for one.

>>>       I want to load the todoo-mode for all files that are within
>>>       ~/todo folder, whichever I load in to emacs anytime. What do I
>>>       have to put in .emacs to do this?
>>
>>No idea.

	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.


A few mode questions if you or anyone has the time:

How to get yellow color on emacs in console? Yellow always shows up as
   brownish-red.

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.

How to make a custom dictionary and load it in emacs? How to use
   autocompletion for long words in the custom dictionary? How to use
   emacspeak? Do I need to become blind to use emacspeak or can anyone
   use it?

How to print from emacs, in color (with background, foreground and
   syntax-highlight colors)?


Thanks a lot for the detailed replies, thanks to others too who replied.
I haven't been getting any messages on this list sine last 5 days or
more, so please cc me a copy if you reply.

Regards,
Deboo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fwd: A few Emacs newbie questions, need oldbie answers :) (fwd)
       [not found] <mailman.1467.1082855417.1061.help-gnu-emacs@gnu.org>
@ 2004-04-26 18:05 ` Kevin Rodgers
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2004-04-26 18:05 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Fwd: A few Emacs newbie questions, need oldbie answers :) (fwd)
  2004-04-25  1:09 Fwd: A few Emacs newbie questions, need oldbie answers :) (fwd) Deboo
@ 2004-04-27 16:14 ` Ryan Bowman
  2004-04-27 16:16 ` Ryan Bowman
  2004-04-27 16:17 ` Ryan Bowman
  2 siblings, 0 replies; 5+ messages in thread
From: Ryan Bowman @ 2004-04-27 16:14 UTC (permalink / raw)



> 
> >>>       What is the best way (or the easiest way)
> to switch buffers?
> 
> >>I tend to do 'C-x b' to switch to the previous
> buffer or 'C-x C-b' for
> >>a list of buffers.
> 
> 	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?

I redefined C-x C-b to bs-show which is a much better
buffer listing with lots of commands for dealing with
and switching to buffers.  The file bs.el (should be
included with emacs) also includes commands for
cycling the buffer forward and backward, which I bound
to M-n and M-p, they also show a list (in the
minibuffer) of the buffers in the order they will be
cycled through. They ar bs-cycle-next and bs-cycle-previous.

=====
---
Ryan

The door at the end of the tunnel is far too small...
 - Closing In 2.0 - Don't Be Afraid - Information Society - insoc.org
---


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Fwd: A few Emacs newbie questions, need oldbie answers :) (fwd)
  2004-04-25  1:09 Fwd: A few Emacs newbie questions, need oldbie answers :) (fwd) Deboo
  2004-04-27 16:14 ` Ryan Bowman
@ 2004-04-27 16:16 ` Ryan Bowman
  2004-04-27 16:17 ` Ryan Bowman
  2 siblings, 0 replies; 5+ messages in thread
From: Ryan Bowman @ 2004-04-27 16:16 UTC (permalink / raw)



> 
> >>>       What is the best way (or the easiest way)
> to switch buffers?
> 
> >>I tend to do 'C-x b' to switch to the previous
> buffer or 'C-x C-b' for
> >>a list of buffers.
> 
> 	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?

I redefined C-x C-b to bs-show which is a much better
buffer listing with lots of commands for dealing with
and switching to buffers.  The file bs.el (should be
included with emacs) also includes commands for
cycling the buffer forward and backward, which I bound
to M-n and M-p, they also show a list (in the
minibuffer) of the buffers in the order they will be
cycled through. They ar bs-cycle-next and bs-cycle-previous.

=====
---
Ryan

The door at the end of the tunnel is far too small...
 - Closing In 2.0 - Don't Be Afraid - Information Society - insoc.org
---


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Fwd: A few Emacs newbie questions, need oldbie answers :) (fwd)
  2004-04-25  1:09 Fwd: A few Emacs newbie questions, need oldbie answers :) (fwd) Deboo
  2004-04-27 16:14 ` Ryan Bowman
  2004-04-27 16:16 ` Ryan Bowman
@ 2004-04-27 16:17 ` Ryan Bowman
  2 siblings, 0 replies; 5+ messages in thread
From: Ryan Bowman @ 2004-04-27 16:17 UTC (permalink / raw)



> 
> >>>       What is the best way (or the easiest way)
> to switch buffers?
> 
> >>I tend to do 'C-x b' to switch to the previous
> buffer or 'C-x C-b' for
> >>a list of buffers.
> 
> 	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?

I redefined C-x C-b to bs-show which is a much better
buffer listing with lots of commands for dealing with
and switching to buffers.  The file bs.el (should be
included with emacs) also includes commands for
cycling the buffer forward and backward, which I bound
to M-n and M-p, they also show a list (in the
minibuffer) of the buffers in the order they will be
cycled through. They ar bs-cycle-next and bs-cycle-previous.

=====
---
Ryan

The door at the end of the tunnel is far too small...
 - Closing In 2.0 - Don't Be Afraid - Information Society - insoc.org
---


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-04-27 16:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-25  1:09 Fwd: A few Emacs newbie questions, need oldbie answers :) (fwd) Deboo
2004-04-27 16:14 ` Ryan Bowman
2004-04-27 16:16 ` Ryan Bowman
2004-04-27 16:17 ` Ryan Bowman
     [not found] <mailman.1467.1082855417.1061.help-gnu-emacs@gnu.org>
2004-04-26 18:05 ` Kevin Rodgers

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).