码迷,mamicode.com
首页 > 其他好文 > 详细

lisp

时间:2015-01-07 20:44:02      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:

(defun iedit-symbol-in-defun ()
  "Enter `iedit-mode‘ to rename the symbol in current function, or exit it."
  (interactive)
  (if iedit-mode
      (progn
        (iedit-mode -1)
        (widen))
    (progn
      (if (thing-at-point ‘symbol)
          (progn
            (narrow-to-defun)
            (iedit-mode t)
            (message "When done, run `epy-iedit-in-defun‘ again to quit.")
            )
        (error "You need to put cursor on identifier.")
      )))) 

  

lisp

标签:

原文地址:http://www.cnblogs.com/Adellbengbeng/p/4209134.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!