不知道大家有没有尝试open ai做的ChatGPT?感觉效果不错,可以当成速查表用了。
试用链接(需要用外国手机号注册):https://chat.openai.com/chat
开不开源先不说,括号里这句话才是最致命的。
国外手机号
试了一下这个 确实很好玩
input
Write a emacs plugin that rotate the window layout
output:
The following is an example of an Emacs plugin that will rotate the window layout in the current frame:
;;; rotate-windows.el --- Rotate the window layout
;;; Version: 1.0
;;; Commentary:
;;; This package provides a command to rotate the window layout in the
;;; current frame.
;;; Code:
(defun rotate-windows ()
"Rotate the window layout of the current frame."
(interactive)
(let ((start-window (selected-window))
(start-window-pos (window-start start-window)))
(catch 'done
(dotimes (i (1- (frame-width)))
(select-window (next-window))
(when (eq (selected-window) start-window)
(throw 'done t)))
(select-window start-window)
(set-window-start start-window start-window-pos))))
(provide 'rotate-windows)
;;; rotate-windows.el ends here
然而实际上执行,它报错了😂
各位还是不可过于信赖 chatgpt 的速查能力😂
我一开始问了他一个有关vim的问题,然后再问了他一个有关emacs的问题,然后这个chatGPT就把emacs和vim给搞混了。
首先 它生成的这一段neovim的代码是正确的,确实是make sense的😂
但是它看起来似乎对于上下文有点过于敏感,没办法十分精准的切换上下文。
用它写代码也会存在版权问题吧。
感觉比 Copilot 还不透明?
让它写个 Emacs 看看会有什么反应,争取年底用上 30.1。
也可以说没错 eglot和lsp-mode作用本来就一样;emacs中用evil就是用i
哈哈哈 用来写代码确实不太可靠 不过拿来查东西感觉还可以