[Top][All Lists]

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

Newbie: Unable to write a custom function

From: deech
Subject: Newbie: Unable to write a custom function
Date: 2 Dec 2006 13:23:26 -0800
User-agent: G2/1.0

Hi all,
I am new to Emacs. I have written a new search function into my .emacs
file but I am unable to invoke it with M-x when I restart Emacs. There
are no error messages when Emacs starts up. Here is the code:

;;Search backwards from a point for a string. If found delete
;;all characters from that string to the point.
;;Eg Given the argument 't', 'alligator' becomes 'alliga'
(defun isearch-backward-tophrase ()
  (set-mark-command ())
  (isearch-backward )
  (kill-region ()())

Any idea what I am doing wrong?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]