Emacs word wrap and replace space by dash

(defun ttl ()
"To apply word wrap in an entire document file"
(interactive)
(toggle-truncate-lines))

;; to replace " " between words by dash "-".
(fset 's2d (kmacro-lambda-form [? ?r ? return ?- return ?!] 0 "%d"))

About albertsk

Professor at the University of Hawaii
This entry was posted in Uncategorized. Bookmark the permalink.