Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun line-contains (regexp)
- "Return true if the current line contains the passed regular expression."
- (save-excursion
- (beginning-of-line)
- (search-forward-regexp regexp (point-at-eol) t)))
- ((or (line-contains "^.")
- (line-contains "^#"))
- if ($default)
- ((or (line-contains "^\.")
- (line-contains "^#"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement