This commit is contained in:
Akko
2025-08-23 00:42:35 +02:00
parent 62dd664426
commit a0a4559151
4 changed files with 96 additions and 30 deletions

View File

@@ -17,10 +17,14 @@
(if (string= (system-name) "illya")
(set-frame-font "Monoflow 12" nil t)
(set-frame-font "Monoflow Medium 20" nil t))
(set-frame-font "Mononoki Medium 12")
(set-frame-font "Mononoki 12" nil t))
(set-frame-font "Mononoki 13")
(setq doom-theme 'doom-ayu-mirage)
(add-to-list 'custom-theme-load-path
(expand-file-name "themes" doom-user-dir))
(add-to-list 'custom-theme-load-path
(expand-file-name "themes" "~/.emacs.d"))
(display-time-mode 1)
@@ -28,12 +32,12 @@
(define-key evil-normal-state-map (kbd "g a") 'paste-above)
(define-key evil-normal-state-map (kbd "g p") 'paste-below)
(global-set-key (kbd "C-x C-f") #'counsel-find-file)
(global-set-key (kbd "C-x C-f") #'find-file)
(map! :leader
"." #'counsel-find-file)
"." #'find-file)
; TODO fix
(map! :after counsel "C-s" #'swiper)
; TODO fix
(map! :after vertico "C-s" #'+default/search-buffer)
(after! evil-escape
(setq evil-escape-key-sequence "jj")
@@ -42,7 +46,7 @@
(which-key-mode 1)
(setq which-key-idle-delay 0.25)
(defun doom/find-file-in-private-config () (interactive) (counsel-find-file doom-user-dir))
;(defun doom/find-file-in-private-config () (interactive) (find-file doom-user-dir))
(setq ivy-height 10
ivy-count-format "(%d/%d) "
@@ -87,10 +91,10 @@
(setq python-shell-completion-native-disabled-interpreters '("ipython"))
(setq org-roam-directory (file-truename "/mnt/tenma/srv/boymind"))
; this seems to be broken right now
;(use-package! org-roam
; :config
; (setq org-roam-database-connector 'sqlite3))
; this seems to be broken right now
;(use-package! org-roam
; :config
; (setq org-roam-database-connector 'sqlite3))
(condition-case nil
(org-roam-db-autosync-mode)
(file-error (progn
@@ -113,6 +117,13 @@
(setq lsp-enable-links nil)
(after! circe
(set-irc-server! "irc.rizon.net"
'(:tls t
:port 6697
:nick "akk0"
:channels ("#r/a/dio"))))
(require 'ox-publish)
(defun blog/get-util (x)
@@ -192,7 +203,7 @@
("static"
:base-directory "~/Blog/static"
:base-extension "css\\|txt\\|jpg\\|gif\\|png\\|ttf\\|js"
:base-extension "css\\|txt\\|jpg\\|gif\\|png\\|ttf\\|js\\|mp4\\|webm"
:recursive t
:publishing-directory "~/Blog/html/static"
:publishing-function org-publish-attachment)
@@ -204,7 +215,7 @@
(defun akko/publish-blog ()
(interactive)
(setq org-publish-project-alist (akko/blog-spec))
(org-publish-all))
(org-publish-all))
(defun akko/force-publish-blog ()
(interactive)
@@ -235,3 +246,20 @@
(setq shell-file-name (executable-find "bash"))
(setq-default vterm-shell (executable-find "fish"))
(setq-default explicit-shell-file-name (executable-find "fish"))
(after! auth-source
(setq auth-sources (append '("~/.authinfo") auth-sources)))
(use-package! gptel
:config
(gptel-make-openai "OpenRouter" ;Any name you want
:host "openrouter.ai"
:endpoint "/api/v1/chat/completions"
:stream t
:key #'gptel-api-key-from-auth-source
:models '(anthropic/claude-3.7-sonnet:beta))
(map! :leader
(:prefix-map ("z" . "AI")
:desc "Send to GPT" "z" #'gptel-send
:desc "GPT menu" "m" #'gptel-menu))
(setq gptel-default-mode #'org-mode))