summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-10-06 18:52:27 +0100
committerjao <jao@gnu.org>2025-10-06 18:52:52 +0100
commitd5056c83de34fadd4ee8438240d6a115c5377877 (patch)
treeb7874f3894abdde1a865f122038c9888a8cb6f7e /init.el
parenta8966ff200e963ce40d5e3234e8f9a203f45a421 (diff)
downloadelibs-d5056c83de34fadd4ee8438240d6a115c5377877.tar.gz
elibs-d5056c83de34fadd4ee8438240d6a115c5377877.tar.bz2
mac navigation
Diffstat (limited to 'init.el')
-rw-r--r--init.el67
1 files changed, 37 insertions, 30 deletions
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."