Kyle R. Burton on 29 Jun 2004 14:41:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Emacs help


> I am looking for a command that will recursively search the current buffer
> for a word and insert it at the current cursor position.  For example,
> when writing code and trying to remember the exact spelling/case of
> identifiers I would use this command to save me from typos.  In vi I could
> do this with ^P or ^N (C-P or C-N).


Someone else will probably beat me to this, but there is a feature in
Emacs that allows you do something similar to ^P/^N ifrom vim:

    ESC / runs the command dabbrev-expand
     which is an interactive compiled Lisp function in `dabbrev'.
  (dabbrev-expand ARG)

For me it's bound to ATL-/, and I have to load "dabbrev" in my .emacs
file:

  (load "dabbrev")

This was the hardest sticking point for me when transitioning from 7+
years of Vim to using Emacs.  Once I found the ^P/^N replacement I was
able to switch.


Kyle


-- 

------------------------------------------------------------------------------
Wisdom and Compassion are inseparable.
        -- Christmas Humphreys
mortis@voicenet.com                            http://www.voicenet.com/~mortis
------------------------------------------------------------------------------
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug