From d5056c83de34fadd4ee8438240d6a115c5377877 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 6 Oct 2025 18:52:27 +0100 Subject: mac navigation --- init.el | 67 ++++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 37 insertions(+), 30 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 55e60d0..509dbeb 100644 --- a/init.el +++ b/init.el @@ -1796,36 +1796,43 @@ (jao-def-exec-in-term "htop" "htop" (jao-afio-goto-scratch)) (jao-d-l - - (transient-define-prefix jao-transient-utils () - "Global operations." - [["Notes" - ("n" "create new note" jao-org-notes-create) - ("/" "open note" jao-org-notes-open) - ("\\" "open note by tags" jao-org-notes-consult-tags) - ("g" "ripgrep notes" jao-org-notes-consult-ripgrep)] - ["Documents" - ("d" "go to doc" jao-select-pdf) - ("o" "open doc" jao-open-doc) - ("c" "view cache" doc-view-dired-cache)] - ["External" - ("xn" "browse NNW article" jao-nnw-browse-current-article) - ("xs" "browse safary article" jao-safari-browse-current) - ("xk" "open skim doc" jao-skim-open-current-doc)] - ["Blog" - ("bn" "create post" jao-org-static-blog-create-new-post) - ("bd" "create draft" jao-org-static-blog-create-new-draft) - ("be" "edit draft" jao-org-static-blog-edit-draft)] - ["Afio" - ("g" "mail" jao-afio-goto-mail) - ("z" "docs" jao-afio-goto-docs) - ("w" "wwww" jao-afio-goto-www) - ("f" "main" jao-afio-goto-main)] - ["Utilities" - ("s" "ssh" jao-ssh) - ("l" "packages" jao-list-packages) - ("p" "passwords" password-store-menu) - ("f" "copy buffer file name" copy-buffer-file-name-as-kill)]]) + (progn + (defun jao-open-firefox () (interactive) (jao-mac-open "-a Firefox")) + (defun jao-open-nnw () (interactive) (jao-mac-open "-a NetNewsWire")) + (defun jao-open-telegram () (interactive) (jao-mac-open "-a Telegram")) + (global-set-key (kbd "s-f") #'jao-open-firefox) + (global-set-key (kbd "s-n") #'jao-open-nnw) + (global-set-key (kbd "s-t") #'jao-open-telegram) + + (transient-define-prefix jao-transient-utils () + "Global operations." + [["Notes" + ("n" "create new note" jao-org-notes-create) + ("/" "open note" jao-org-notes-open) + ("\\" "open note by tags" jao-org-notes-consult-tags) + ("g" "ripgrep notes" jao-org-notes-consult-ripgrep)] + ["Documents" + ("d" "go to doc" jao-select-pdf) + ("o" "open doc" jao-open-doc) + ("c" "view cache" doc-view-dired-cache)] + ["External" + ("xn" "browse NNW article" jao-nnw-browse-current-article) + ("xs" "browse safary article" jao-safari-browse-current) + ("xk" "open skim doc" jao-skim-open-current-doc)] + ["Blog" + ("bn" "create post" jao-org-static-blog-create-new-post) + ("bd" "create draft" jao-org-static-blog-create-new-draft) + ("be" "edit draft" jao-org-static-blog-edit-draft)] + ["Afio" + ("g" "mail" jao-afio-goto-mail) + ("z" "docs" jao-afio-goto-docs) + ("w" "wwww" jao-afio-goto-www) + ("f" "main" jao-afio-goto-main)] + ["Utilities" + ("s" "ssh" jao-ssh) + ("l" "packages" jao-list-packages) + ("p" "passwords" password-store-menu) + ("F" "copy buffer file name" copy-buffer-file-name-as-kill)]])) (transient-define-prefix jao-transient-utils () "Global operations." -- cgit v1.2.3