Skip to content

Commit 6cbec15

Browse files
committed
✨ (init.el) Update
1 parent e4606b6 commit 6cbec15

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

emacs.d/init.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@
888888
(leaf aider
889889
:require t
890890
:custom
891-
((aider-args . '("--model" "gemini/gemini-2.0-flash"))))
891+
((aider-args . '("--watch-files" "--model" "gemini/gemini-2.0-flash"))))
892892

893893
(leaf aidermacs
894894
:require t
@@ -1108,11 +1108,11 @@
11081108

11091109
(defun blog-paste-image ()
11101110
(interactive)
1111-
(setq filename (concat
1111+
(setq fullpath (concat
11121112
(expand-file-name (format-time-string "%Y-%m-%d-%H%M%S")
1113-
"~/.ghq/github.com/Comamoca/blog/src/images") ".png"))
1114-
(shell-command (concat "wl-paste -t image/png > " filename))
1115-
(insert (concat "![](" filename ")"))
1113+
"~/.ghq/github.com/Comamoca/blog/src/images") ".png"))
1114+
(shell-command (concat "wl-paste -t image/png > " fullpath))
1115+
(insert (concat "![](/images/" (file-name-nondirectory fullpath) ")"))
11161116
(org-display-inline-images))
11171117

11181118

0 commit comments

Comments
 (0)