commit 7dac666dbd12c4f9b1c8232e51341efdb4507717 parent d8d41bf03bef6ef2ca7d3f835546def05af5260c Author: Vincent Demeester <vincent@sbr.pm> Date: Mon, 5 Feb 2024 16:19:07 +0100 tools/emacs: config few org stuff Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-org.el | | | 5 | +++++ |
M | tools/emacs/config/config-windows.el | | | 7 | +++++++ |
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tools/emacs/config/config-org.el b/tools/emacs/config/config-org.el @@ -118,6 +118,11 @@ (todo . " %i") (tags . " %i") (search . " %i"))) + (org-insert-heading-respect-content t) + + (org-goto-interface 'outline-path-completion) + (org-outline-path-complete-in-steps nil) + (org-goto-max-level 2) (org-agenda-category-icon-alist `(("journal" ,(list (propertize "📝"))) ("project--" ,(list (propertize "💼" ))) diff --git a/tools/emacs/config/config-windows.el b/tools/emacs/config/config-windows.el @@ -28,6 +28,13 @@ (winner-mode 1)) ;; -UseWinner +(defun toggle-maximize-buffer () + "Maximize buffer" + (interactive) + (if (one-window-p) + (winner-undo) + (delete-other-windows))) + ;; UseAceWindow (use-package ace-window :unless noninteractive