首页 > 其他 > 详细

lisp

时间:2015-01-07 20:42:38      阅读:225      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!