LoginSignup
2
2

More than 5 years have passed since last update.

リージョンの文字列反転

Posted at
(defun replace-region-to-text (text beg end)
  (delete-region beg end)
  (insert text)
  )

(defun reverse-region-string (&optional beg end)
  (interactive "r")
  (replace-region-to-text (apply 'string
                                 (reverse
                                  (string-to-list
                                   (buffer-substring beg end))))
                          beg end))

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2