jus*_*nhj 10 python emacs elisp
我正在使用相当长的函数编辑一些Python代码,并认为快速获取函数名称而不向上滚动会很有用.我把这段代码放在一起做.是否内置了emacs,特别是标准的python模式,我可以使用它?
(defun python-show-function-name()
"Message the name of the function the point is in"
(interactive)
(save-excursion
(beginning-of-defun)
(message (format "%s" (thing-at-point 'line)))))
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
756 次 |
| 最近记录: |