feat: org-agenda keys and evil-org-mode

This commit is contained in:
Muhammad Nauman Raza 2022-11-11 19:28:03 +00:00
parent 47eacffa8d
commit 599e734056
No known key found for this signature in database
GPG key ID: A9A36C429C9CAE31

View file

@ -1,7 +1,5 @@
;;; This file contains configuration for Emacs' org-mode ;;; This file contains configuration for Emacs' org-mode
;;; org-mode ;; org-superstar
;;; org-mode
;; org-superstar
(use-package org-superstar (use-package org-superstar
:config :config
;; Change org-mode's heading bullets ;; Change org-mode's heading bullets
@ -55,7 +53,15 @@
:if-new (file+head "${slug}.org" "#+title: ${title}\n#+date: %U\n#+author: %n\n") :if-new (file+head "${slug}.org" "#+title: ${title}\n#+date: %U\n#+author: %n\n")
:unnarrowed t))) :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 (general-create-definer diancite/org
:prefix leader-key) :prefix leader-key)
@ -64,5 +70,15 @@
"n r" '(org-roam-node-find :wk "Find Nodes") "n r" '(org-roam-node-find :wk "Find Nodes")
"n s" '(org-roam-db-sync :wk "Sync 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 this file to init.el
(provide 'org-mode) (provide 'org-mode)