From 599e7340560f8e7489de2aed9b7c3db37ea52bfa Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Fri, 11 Nov 2022 19:28:03 +0000 Subject: [PATCH] feat: org-agenda keys and evil-org-mode --- lisp/org-mode.el | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/lisp/org-mode.el b/lisp/org-mode.el index 2777d31..5e51578 100644 --- a/lisp/org-mode.el +++ b/lisp/org-mode.el @@ -1,7 +1,5 @@ ;;; This file contains configuration for Emacs' org-mode - -;;; org-mode -;; org-superstar +;;; org-mode ;; org-superstar (use-package org-superstar :config ;; Change org-mode's heading bullets @@ -55,14 +53,32 @@ :if-new (file+head "${slug}.org" "#+title: ${title}\n#+date: %U\n#+author: %n\n") :unnarrowed t))) -;; Keybinds for org-mode +;;; Keybinds for org-mode +;; evil-org - Some nice keybinds for org-mode and org-agenda +(use-package evil-org + :after org + :hook (org-mode . evil-org-mode) + :config + (require 'evil-org-agenda) + (evil-org-agenda-set-keys)) + (general-create-definer diancite/org - :prefix leader-key) + :prefix leader-key) (diancite/org :keymaps 'normal "n r" '(org-roam-node-find :wk "Find Nodes") "n s" '(org-roam-db-sync :wk "Sync Nodes")) +;; Agenda - manage your life with org-mode +(general-create-definer diancite/org-agenda + :prefix leader-key) + +(diancite/org-agenda + :keymaps 'normal + "n a" '(org-agenda :wk "Agenda")) + +(setq org-agenda-files (quote ("~/Org"))) + ;; Provide this file to init.el (provide 'org-mode)