home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 560ae4f14126ba0f57e70d15864f972c3634f11e
parent 99ac50981ad44a071d098f70953e0f4514832eec
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 29 Feb 2024 18:21:27 +0100

Add a vde/agenda-goto-view…

… but not bound yet.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-org.el | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/tools/emacs/config/config-org.el b/tools/emacs/config/config-org.el @@ -50,6 +50,13 @@ (set-register ?P `(file . ,org-people-dir)) (set-register ?j `(file . ,org-journal-dir)) +(defun vde/agenda-goto-view () + "Jump to the task narrowed but in view mode only to get a glance." + (interactive) + (org-agenda-goto) + (org-narrow-to-subtree) + (view-mode t)) + (defun vde/org-mode-hook () "Org-mode hook" (setq show-trailing-whitespace t) @@ -356,6 +363,7 @@ file which do not already have one." :after org :bind (:map org-mode-map ("C-M-y" . org-rich-yank))) + ;; (use-package org ;; ;; :ensure org-plus-contrib ;; load from the package instead of internal ;; :mode (("\\.org$" . org-mode)