diff --git a/.doom.d/autoload.el b/.doom.d/autoload.el index 6492ed90..e1f10ff6 100644 --- a/.doom.d/autoload.el +++ b/.doom.d/autoload.el @@ -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 () diff --git a/.doom.d/better-default.el b/.doom.d/better-default.el index cb67c22e..16799d80 100644 --- a/.doom.d/better-default.el +++ b/.doom.d/better-default.el @@ -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))) diff --git a/.doom.d/packages.el b/.doom.d/packages.el index a589b6d4..d177047f 100644 --- a/.doom.d/packages.el +++ b/.doom.d/packages.el @@ -368,6 +368,8 @@ ;; spaced repetition ;; (package! gnosis) +(package! devdocs) + ;; Local Variables: ;; eval: (apheleia-mode -1) ;; End: