有没有用ChatGPT实现emacs智能助手的可能性?

不知道大家有没有尝试open ai做的ChatGPT?感觉效果不错,可以当成速查表用了。

试用链接(需要用外国手机号注册):https://chat.openai.com/chat

1 个赞

开不开源先不说,括号里这句话才是最致命的。

1 个赞

:joy:国外手机号

试了一下这个 确实很好玩

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 是不是把 eglot 和 lspmode 两个包给搞混了😂

各位还是不可过于信赖 chatgpt 的速查能力😂

我一开始问了他一个有关vim的问题,然后再问了他一个有关emacs的问题,然后这个chatGPT就把emacs和vim给搞混了。

首先 它生成的这一段neovim的代码是正确的,确实是make sense的😂

但是它看起来似乎对于上下文有点过于敏感,没办法十分精准的切换上下文。

用它写代码也会存在版权问题吧。

感觉比 Copilot 还不透明?

让它写个 Emacs 看看会有什么反应,争取年底用上 30.1。

2 个赞

VS code 已经有了 https://github.com/mpociot/chatgpt-vscode

看了下发的demo,确实厉害

也可以说没错 :joy: :joy: :joy: eglot和lsp-mode作用本来就一样;emacs中用evil就是用i :joy:

哈哈哈 用来写代码确实不太可靠 不过拿来查东西感觉还可以