aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/rul-lisp/packages
diff options
context:
space:
mode:
authorRaul Benencia <id@rbenencia.name>2026-02-12 18:23:23 -0800
committerRaul Benencia <id@rbenencia.name>2026-02-12 18:23:23 -0800
commitedfc8683e95126875ab94cacef0031ab63bb2fbb (patch)
treeda8e5e073455e86eb15876b4e4f2f73466da8b72 /.emacs.d/rul-lisp/packages
parentb2ff85e7c7df4ce6a906c14a17fb67ef7486f947 (diff)
emacs: org-remark
Diffstat (limited to '.emacs.d/rul-lisp/packages')
-rw-r--r--.emacs.d/rul-lisp/packages/rul-org.el20
-rw-r--r--.emacs.d/rul-lisp/packages/rul-wm.el12
2 files changed, 32 insertions, 0 deletions
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)
nihil fit ex nihilo