On Thu, 2003-11-13 at 15:44, Daniel Smith wrote:
> > Hmm, so basically you have a site-lisp directory now, but it's empty?
> > That's too bad.  Although I think most of what you need is already a
> > part of emacs.  Text completions should be.  By default the key 
> > sequence
> > for a completion is M-/ (alt-/, but if you've been using emacs for 3+
> > years you should understand that).  Pretty akward, but you can bind it
> > to tab.  Put something like this in your .emacs:
> >
> > (global-set-key "<tab>" 'dabbrev-expand)
> 
> That does the trick.          I was able to get it working with the function 
> you wrote by using
> 
> (global-set-key [tab] 'indent-or-complete)
> 
> instead of
> 
> (define-key text-mode-map [tab] 'indent-or-complete)
> 
> the comments that were in the documentation said that this could cause 
> problems with the mini-buffer, but I haven't been able to get it to do 
> anything weird yet.  

Oh yeah, by default you can do tab completion there, and the above ruins
that if I remember correctly.  Hence all the local-set-key stuff.  By
the way, I didn't write that much of anything in that .emacs myself,
except for some basic (global-set-key... lines and comments.  I just
assembled the file.  It looks like some comments got wrapped and stuff
that should be commented isn't.  Bummer.

> Thanks for all your help.  And to tell you the 
> truth even after 3 years of using emacs I still did not know about M-/. 
>   There is probably tons of other cool features emacs will do that I 
> don't know about either.

I'm right with you man.  I've recently discovered the emacs wiki and
have spent way too much time reading there, but I've learned a ton about
emacs.  It is amazing how long I went (also about 3 years) without
knowing about some of these cool features.  Another thing I love is when
I see someone do some cool trick with vim or nedit and I go look it up
and sure enough, emacs can do it too.

Bryan



____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to