From edfc8683e95126875ab94cacef0031ab63bb2fbb Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Thu, 12 Feb 2026 18:23:23 -0800 Subject: emacs: org-remark --- .emacs.d/rul-lisp/packages/rul-org.el | 20 ++++++++++++++++++++ .emacs.d/rul-lisp/packages/rul-wm.el | 12 ++++++++++++ 2 files changed, 32 insertions(+) (limited to '.emacs.d/rul-lisp/packages') diff --git a/.emacs.d/rul-lisp/packages/rul-org.el b/.emacs.d/rul-lisp/packages/rul-org.el index eb08b03..15a0f7c 100644 --- a/.emacs.d/rul-lisp/packages/rul-org.el +++ b/.emacs.d/rul-lisp/packages/rul-org.el @@ -174,6 +174,7 @@ (setq org-clock-mode-line-total 'today) +;; org-tempus (unless (package-installed-p 'org-tempus) (package-vc-install "https://github.com/rul/org-tempus.git")) @@ -181,4 +182,23 @@ :init (org-tempus-mode 1)) +;; org-remark +(use-package org-remark-global-tracking + :hook after-init + :config + (use-package org-remark-nov :after nov :config (org-remark-nov-mode +1))) + +(use-package org-remark + :bind (;; :bind keyword also implicitly defers org-remark itself. + ;; Keybindings before :map is set for global-map. Adjust the keybinds + ;; as you see fit. + ("C-c n m" . org-remark-mark) + ("C-c n l" . org-remark-mark-line) + :map org-remark-mode-map + ("C-c n o" . org-remark-open) + ("C-c n ]" . org-remark-view-next) + ("C-c n [" . org-remark-view-prev) + ("C-c n r" . org-remark-remove) + ("C-c n d" . org-remark-delete))) + (provide 'rul-org) diff --git a/.emacs.d/rul-lisp/packages/rul-wm.el b/.emacs.d/rul-lisp/packages/rul-wm.el index d33bcdb..90bd031 100644 --- a/.emacs.d/rul-lisp/packages/rul-wm.el +++ b/.emacs.d/rul-lisp/packages/rul-wm.el @@ -144,4 +144,16 @@ With optional argument FRAME, return the list of buffers of FRAME." (define-key global-map (kbd "C-x p K") 'kill-project-buffers-and-close-frame) +(add-hook 'text-mode-hook 'context-menu-mode) + +(defun my-context-menu (menu click) + "My context menu" + (define-key-after menu [dictionary-lookup] + '(menu-item "Dict" dictionary-search-word-at-mouse + :help "Look up in dictionary")) + menu) + +;; hook into context menu +(add-hook 'context-menu-functions #'my-context-menu) + (provide 'rul-wm) -- cgit v1.2.3