Skip to content

Commit

Permalink
chore: devdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn committed Dec 27, 2024
1 parent 30cf436 commit 4682795
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .doom.d/autoload.el
Original file line number Diff line number Diff line change
Expand Up @@ -1114,16 +1114,13 @@ result instead of `message'."
;; default-directory))
;; nil 0)

(call-process-shell-command
(+kitten
(format!
"%s @ --to unix:/tmp/tkitty launch --type tab --tab-title '%s' --cwd '%s'"
(executable-find "kitten")
"launch --type tab --tab-title '%s' --cwd '%s'"
(or buffer-file-name default-directory)
(if buffer-file-name
(file-name-directory buffer-file-name)
default-directory))
nil 0)
(call-process-shell-command "open -a kitty.app" nil 0))
default-directory))))

;;;###autoload
(defun +copilot-chat-display ()
Expand Down
10 changes: 10 additions & 0 deletions .doom.d/better-default.el
Original file line number Diff line number Diff line change
Expand Up @@ -882,3 +882,13 @@ If `DEVICE-NAME' is provided, it will be used instead of prompting the user."

(use-package jinx
:hook (doom-first-file . global-jinx-mode))

(defun +kitten (cmd &optional no-focus)
(call-process-shell-command
(format!
"%s @ --to unix:/tmp/tkitty %s"
(executable-find "kitten")
cmd)
nil 0)
(unless no-focus
(call-process-shell-command "open -a kitty.app" nil 0)))
2 changes: 2 additions & 0 deletions .doom.d/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@
;; spaced repetition
;; (package! gnosis)

(package! devdocs)

;; Local Variables:
;; eval: (apheleia-mode -1)
;; End:

0 comments on commit 4682795

Please sign in to comment.