The great config remake.

I decided to go back to the basics with this one. Only the packages I think
I *REALLY* need (or want) are left, the rest are replaced by the built-in
alternatives or even better, removed.
This commit is contained in:
2026-03-13 15:51:28 +09:00
parent 0f5a63df6d
commit 34b25f2352
9 changed files with 98 additions and 632 deletions

View File

@@ -22,8 +22,14 @@
;; main configuration eventually.
;;; Code:
; Whisper should be available in path, so we overwrite the search function so
; that it takes the executable from there instead of the install directory.
(defun my-whisper--find-whispercpp-server ()
(executable-find "whisper-server"))
(use-package whisper
:defer t
:straight (whisper :type git
:host github
:repo "natrys/whisper.el"
@@ -39,12 +45,8 @@
whisper-translate nil
whisper-use-threads (/ (num-processors) 2))
;; Lets get hacking
; The whisper is available in path, so we overwrite the search function so
; that it takes the executable from there instead of the install directory.
(defun whisper--find-whispercpp-server ()
(executable-find "whisper-server")))
(advice-add 'whisper--find-whispercpp-server :override #'my-whisper--find-whispercpp-server))
(keymap-global-set "<f9>" #'whisper-run)
;;; 90-experimental.el ends here