Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. (defun line-contains (regexp)
  2. "Return true if the current line contains the passed regular expression."
  3. (save-excursion
  4. (beginning-of-line)
  5. (search-forward-regexp regexp (point-at-eol) t)))
  6.  
  7. ((or (line-contains "^.")
  8. (line-contains "^#"))
  9.  
  10. if ($default)
  11.  
  12. ((or (line-contains "^\.")
  13. (line-contains "^#"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement