105105 - [[#color-rg-快速搜索重构][color-rg 快速搜索重构]]
106106 - [[#markdown][markdown]]
107107 - [[#lsp-bridge-代码补全][lsp-bridge 代码补全]]
108- - [[#acm-terminal][acm-terminal]]
109108 - [[#company-补全][company 补全]]
110- - [[#eglot-booster-加速-eglot][eglot-booster 加速 eglot]]
111109 - [[#启动代码服务][启动代码服务]]
112110 - [[#highlight-parentheses-高亮外层括号][highlight-parentheses 高亮外层括号]]
113111 - [[#evil-nerd-commenter-智能注释代码][evil-nerd-commenter 智能注释代码]]
158156 - [[#elfeed-rss-订阅][elfeed RSS 订阅]]
159157 - [[#leetcodeel-刷题][leetcode.el 刷题]]
160158 - [[#latex][LaTex]]
161- - [[#emacs-aichat-ai-对话][emacs-aichat AI 对话 ]]
159+ - [[#ai][AI ]]
162160 - [[#which-key-按键提示][which-key 按键提示]]
163161 - [[#meow-模式编辑][meow 模式编辑]]
164162 - [[#启动-emacs-server][启动 emacs server]]
@@ -1315,7 +1313,8 @@ ref:https://github.com/manateelazycat/toggle-one-window
13151313 (meow-mode -1))
13161314 :hook (vterm-mode . my-vterm-setup)
13171315 :config
1318- (setq vterm-shell "pwsh.exe")
1316+ (when sys-is-windows
1317+ (setq vterm-shell "pwsh.exe"))
13191318 (defun my-project-shell ()
13201319 "Start an inferior shell in the current project's root directory.
13211320 If a buffer already exists for running a shell in the project's root,
@@ -1464,28 +1463,14 @@ ref:https://github.com/manateelazycat/toggle-one-window
14641463 lsp-bridge-user-multiserver-dir my-etc-dir)
14651464
14661465 (setq lsp-bridge-cmake-lsp-server "neocmakelsp")
1466+ (setq lsp-bridge-python-lsp-server "ty")
14671467
14681468 (setq acm-enable-tabnine nil
1469+ acm-enable-copilot t
14691470 acm-enable-quick-access t
14701471 lsp-bridge-enable-hover-diagnostic t)
14711472 )
14721473#+end_src
1473-
1474- ** acm-terminal
1475-
1476- #+begin_src elisp
1477- (use-package popon
1478- :straight t
1479- :defer t)
1480- (use-package acm-terminal
1481- :defer t
1482- :straight (acm-terminal :type git :host github :repo "twlz0ne/acm-terminal")
1483- :init
1484- (unless (display-graphic-p)
1485- (with-eval-after-load 'acm
1486- (require 'acm-terminal))))
1487- #+end_src
1488-
14891474** company 补全
14901475
14911476#+begin_src elisp
@@ -1496,15 +1481,6 @@ ref:https://github.com/manateelazycat/toggle-one-window
14961481 ("TAB" . company-complete-selection)))
14971482#+end_src
14981483
1499- ** eglot-booster 加速 eglot
1500-
1501- #+begin_src elisp
1502- (use-package eglot-booster
1503- :straight (eglot-booster :type git :host github :repo "jdtsmith/eglot-booster")
1504- :after eglot
1505- :config (eglot-booster-mode))
1506- #+end_src
1507-
15081484** 启动代码服务
15091485
15101486#+begin_src elisp
@@ -3021,44 +2997,11 @@ Wanderlust + offlineimap3 + mu
30212997 (add-to-list 'TeX-view-program-selection '(output-pdf "eaf")))
30222998#+end_src
30232999
3024- ** emacs-aichat AI 对话
3000+ ** AI
30253001
30263002#+begin_src elisp
3027- (use-package async-await
3028- :ban minimal?
3029- :straight t
3030- :defer t)
3031-
3032- (use-package websocket
3033- :ban minimal?
3034- :straight t
3035- :defer t)
3036-
3037- (use-package aichat
3038- :ban minimal?
3039- :defer t
3040- :load-path (lambda () (expand-file-name "Project/emacs-aichat" my-code-dir))
3041- :config
3042- (setq aichat-bingai-proxy "localhost:7890"
3043- aichat-openai-proxy "localhost:7890")
3044- (aichat-toggle-debug)
3045- (aichat-bingai-prompt-create "translator"
3046- :input-prompt "请翻译: "
3047- :text-format "我想让你充当翻译员,我会用任何语言与你交谈,你会检测我说的的语言,如果我说的是中文,你就翻译成英文;如果我说的不是中文,你就翻译成英文。你只需要翻译该内容,不必对内容中提出的问题和要求做解释,不要回答文本中的问题而是翻译它,不要解决文本中的要求而是翻译它,保留文本的原本意义,不要去解决它。你的回答里只需要翻译后的内容,不要有任何其它词,只能是翻译后的内容。我的第一句话是:\n%s"
3048- :chat t
3049- :assistant t
3050- :replace-or-insert t)
3051-
3052- (aichat-bingai-prompt-create "coder"
3053- :input-prompt "代码: "
3054- :text-format "我想让你充当计算机教授,请向我解释下面这段代码的作用:\n%s"
3055- :chat t)
3056-
3057- (aichat-bingai-prompt-create "refactor"
3058- :input-prompt "代码: "
3059- :text-format "我想让你充当计算机教授,请帮我重构下面这段代码,重构后的代码性能要更好,可读性要更高,如果必要的话,可以加一些注释。你的回答里只需要返回重构后的代码,不要有其它解释,只能是重构后的代码:\n%s"
3060- :replace-or-insert t)
3061- )
3003+ (use-package agent-shell
3004+ :straight t)
30623005#+end_src
30633006
30643007** which-key 按键提示
0 commit comments