help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: A few simple questions


From: Marco Parrone
Subject: Re: A few simple questions
Date: Sat, 10 May 2003 14:35:42 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> (defun go-to-non-alphanum (arg)
>   "Search forward for a whitespace."
>   (interactive "p")
>   (re-search-forward "[^A-Za-z1-9]" nil nil arg))
> 
> (define-key global-map (kbd "C-c n") 'go-to-char)

I'm very sorry, I should be less instinctive, this should work.

(defun go-to-whitespace (arg)
  "Search forward for a whitespace."
  (interactive "p")
  (re-search-forward " \\|\n\\|\t" nil nil arg))
(define-key global-map (kbd "C-c w") 'go-to-whitespace)


reply via email to

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