From ea7d9387e7831b5744f50c39af732ead21c2dd0a Mon Sep 17 00:00:00 2001 From: KemoNine Date: Tue, 8 Aug 2023 16:27:01 -0400 Subject: [PATCH] add way to pop new frame and main org-mode landing page pre opened w/ a scratch buffer --- common/workspaces.el | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/common/workspaces.el b/common/workspaces.el index 507031f..9cb8a3d 100644 --- a/common/workspaces.el +++ b/common/workspaces.el @@ -139,6 +139,23 @@ ) ) +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; org-mode workspace for general kb work that doesnt use the agenda +(when (not kmn/is-dayjob) +(defun kmn/workspace-org-index () + (interactive) + (kmn/possibly-create-frame) + ; start with fresh frame + (delete-other-windows) + ; setup scratch on right + (kmn/scratch-text-on-right) + (goto-char 0) + ; Open main files used as 'gateway' to everything else + (find-file "~/org/_index.org") + (goto-char 0) +) +) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; empty code workspace (defun kmn/workspace-code-empty (&optional dir_path)