From 553ce20fb09163616476c770985f1db2dd52d301 Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 4 Jul 2021 21:46:07 +0100 Subject: wee refactoring --- exwm.org | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/exwm.org b/exwm.org index cd83ca3..287cde4 100644 --- a/exwm.org +++ b/exwm.org @@ -344,7 +344,7 @@ (ignore-errors (with-current-buffer b (jao-exwm--send-str "q")))) t) - (defun jao-exwm-pdf-goto-org (&optional arg) + (defun jao-exwm-zathura-goto-org (&optional arg) (interactive "P") (when-let ((info (jao-zathura--file-info (current-buffer)))) (when-let ((file (jao-org-pdf-to-org-file (car info)))) @@ -355,9 +355,9 @@ (jao-org-insert-doc-skeleton) (org-insert-link)))))) - (defun jao-exwm-pdf-goto-org* () + (defun jao-exwm-zathura-goto-org* () (interactive) - (jao-exwm-pdf-goto-org t)) + (jao-exwm-zathura-goto-org t)) (defun jao-exwm-org-store-zathura-link () (when-let ((info (jao-zathura--file-info (current-buffer)))) @@ -441,8 +441,8 @@ ("F" exwm-layout-toggle-fullscreen "toggle fullscreen mode") ("m" exwm-workspace-move-window nil)) "Zathura" - (("o" jao-exwm-pdf-goto-org "Go to org notes") - ("O" (jao-exwm-pdf-goto-org t) "Go to org notes, linking")) + (("o" jao-exwm-zathura-goto-org "Go to org notes") + ("O" (jao-exwm-zathura-goto-org t) "Go to org notes, linking")) "Exwm utilities" (("k" exwm-input-release-keyboard "release keyboard") ("x" exwm-reset "reset exwm")))) @@ -489,8 +489,8 @@ (define-key exwm-mode-map [?\s-m] #'jao-hydra-media/body) (define-key exwm-mode-map [?\s-s] #'jao-hydra-spotify/body) (define-key exwm-mode-map [?\s-w] #'jao-hydra-exwm/body) - (define-key exwm-mode-map (kbd "C-c o") #'jao-exwm-pdf-goto-org) - (define-key exwm-mode-map (kbd "C-c O") #'jao-exwm-pdf-goto-org*) + (define-key exwm-mode-map (kbd "C-c o") #'jao-exwm-zathura-goto-org) + (define-key exwm-mode-map (kbd "C-c O") #'jao-exwm-zathura-goto-org*) (define-key exwm-mode-map (kbd "M-o") #'other-window) (setq -- cgit v1.2.3