2013-03-20 87 views

回答

7

沒有內置的功能,你想要做什麼,但這個片段會做的伎倆。

(defun lower-and-concat (b e) 
    (interactive "r") 
    (save-restriction 
    (narrow-to-region b e) 
    (goto-char (point-min)) 
    (downcase-region b e) 
    (while (re-search-forward "[ \t]+" nil t) 
     (replace-match "_")))) 
相關問題