fix: Correct ibuffer occur grouping, add temperature parameter to Kimi API

- Move `occur-mode` and `occur-edit-mode` from "Emacs" to "Search" ibuffer group
- Add temperature parameter to Kimi API request
- Remove `~` from electric-pair pairs
- Change `multiple-cursors` config to use `:custom`
- Fix duplicate `holiday` face definition in both base16 themes
This commit is contained in:
User
2026-06-20 21:52:11 +08:00
parent 560d4aac4b
commit 8f719f331c
5 changed files with 8 additions and 9 deletions

View File

@@ -183,7 +183,9 @@
(mode . grep-mode)
(mode . rg-mode)
(mode . xref--xref-buffer-mode)
(mode . xref-edit-mode)))
(mode . xref-edit-mode)
(mode . occur-mode)
(mode . occur-edit-mode)))
("Diff" (name . "^*Diff"))
("Emacs" (or
(name . "^\\*Help\\*$")
@@ -194,8 +196,7 @@
(name . "^*Buffer List*")
(name . "\\*discomfort\\*")
(mode . calendar-mode)
(mode . grep-mode)
(mode . occur-mode))))))
(mode . grep-mode))))))
(add-hook 'ibuffer-hook
(lambda () (ibuffer-switch-to-saved-filter-groups "Main")

View File

@@ -13,12 +13,12 @@
(use-package elec-pair
:config
(setq electric-pair-inhibit-predicate 'electric-pair-conservative-inhibit
electric-pair-pairs (append '((?\~ . ?\~) (?\= . ?\=)) electric-pair-pairs)))
electric-pair-pairs (append '((?\= . ?\=)) electric-pair-pairs)))
;; multiple-cursors
(use-package multiple-cursors
:config
(setq mc/insert-numbers-default 1))
:custom
(mc/insert-numbers-default 1))
;; crux实用函数
(use-package crux)

View File

@@ -129,7 +129,7 @@ from the last 1500 characters of the buffer."
(auth-source-pick-first-password :host "api.kimi.com" :user "apikey"))
:stream t
:models '((kimi-for-coding))
:request-params '(:thinking (:type "disabled"))
:request-params '(:temperature 0.6 :thinking (:type "disabled"))
:header (lambda (_)
(when-let ((key (gptel--get-api-key)))
`(("User-Agent" . "RooCode/3.30.3")

View File

@@ -40,7 +40,6 @@
`(holiday ((,class (:underline (:style line :color ,yellow)))))
`(cal-china-x-important-holiday-face ((,class (:underline (:style line :color ,red)))))
`(cal-china-x-general-holiday-face ((,class (:underline (:style line :color ,yellow)))))
`(holiday ((,class (:underline (:style line :color ,yellow)))))
`(markdown-header-face-1 ((,class (:foreground ,orange :height 1.0 :weight normal))))
`(markdown-header-face-2 ((,class (:foreground ,blue :height 1.0 :weight normal))))
`(markdown-header-face-3 ((,class (:foreground ,green :height 1.0 :weight normal))))

View File

@@ -40,7 +40,6 @@
`(holiday ((,class (:underline (:style line :color ,yellow)))))
`(cal-china-x-important-holiday-face ((,class (:underline (:style line :color ,red)))))
`(cal-china-x-general-holiday-face ((,class (:underline (:style line :color ,yellow)))))
`(holiday ((,class (:underline (:style line :color ,yellow)))))
`(markdown-header-face-1 ((,class (:foreground ,orange :height 1.0 :weight normal))))
`(markdown-header-face-2 ((,class (:foreground ,blue :height 1.0 :weight normal))))
`(markdown-header-face-3 ((,class (:foreground ,green :height 1.0 :weight normal))))