[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
matching #ifdefs...
From: |
Javier Oviedo |
Subject: |
matching #ifdefs... |
Date: |
Fri, 31 Jan 2003 13:46:02 -0500 |
Hello all.
Currently I use the following function to jump back and forth between
matching parens:
(defun match-paren (arg)
"Go to the matching parenthesis if on parenthesis otherwise insert %."
(interactive "p")
(cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
((looking-at "\\s\)") (forward-char 1) (backward-list 1))
(t (self-insert-command (or arg 1)))))
Is there somthing similar to this that will let me jump between #if
statements? Thanks in advance!
- matching #ifdefs...,
Javier Oviedo <=