Archive for November, 2007

Dos2unix in Emacs, Sometimes Macros Are Nice

No CRLF
This is just a generic search and replace. Really you could make a macro for any search and replace you do on a regular basis.

;;; A interactive function for replacing all dos
;;; carriage returns (^M) with Unix 
;;; line feeds in a selected buffer. 
(defun dos2unix (buffer)
  "Automate M-% C-q C-m RET C-q C-j RET"
  (interactive "b buffer to convert" )
  (goto-char (point-min))
  (while (search-forward (string ?\C-m) nil t)
    (replace-match "" nil t)))

, , , , , ,

3 Comments

Costco Temptations

A.C.E. 250cc Go KartCostco is now offering A.C.E. Sports Pilot 250cc Off-Road Performance Go Kart. I could imagine a lot of fun Mad Max style paintball games with that right there. Of couse anything like that is way too dangerous for me to ever consider owning with Gabe around besides being well outside my budget.

, , , , ,

No Comments

Bad Behavior has blocked 124 access attempts in the last 7 days.