diff options
-rw-r--r-- | .emacs.d/lisp/init-org.el | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el index 37c9bd5..ac376ac 100644 --- a/.emacs.d/lisp/init-org.el +++ b/.emacs.d/lisp/init-org.el @@ -11,9 +11,6 @@ (autoload #'evil-org-mode "evil-org" nil t) (add-hook 'org-mode-hook 'evil-org-mode) (add-hook 'org-agenda-mode-hook 'evil-org-mode)) -;; (add-hook 'evil-org-mode-hook -;; (lambda () -;; (setq evil-want-C-i-jump nil))) (with-eval-after-load 'evil-org (evil-org-set-key-theme '(navigation insert textobjects additional calendar todo)) (gx/diminish 'evil-org-mode)) @@ -23,9 +20,7 @@ (evil-define-key 'normal 'global (kbd "<leader>a") 'org-agenda (kbd "<leader>l") 'org-store-link - (kbd "<leader>C") 'org-capture - (kbd "<leader>fn") 'org-roam-node-find - (kbd "<leader>cn") 'org-roam-dailies-goto-today) + (kbd "<leader>C") 'org-capture) (evil-define-key 'normal org-mode-map (kbd "TAB") 'org-cycle (kbd "RET") 'org-open-at-point @@ -35,7 +30,6 @@ ;; toggle (kbd "<leader><SPC>l") 'org-toggle-link-display - (kbd "<leader><SPC>b") 'org-roam-buffer-toggle ;; set (kbd "<leader>ss") 'org-schedule @@ -46,8 +40,7 @@ ;; insert (kbd "<leader>il") 'org-insert-link - (kbd "<leader>ih") 'org-insert-heading - (kbd "<leader>in") 'org-roam-node-insert + (kbd "<leader>ih") 'org-i (kbd "<leader>ii") 'org-id-get-create ;; clock @@ -58,10 +51,7 @@ ;; priority (kbd "+") 'org-priority-up - (kbd "-") 'org-priority-down - - (kbd "[d") 'org-roam-dailies-goto-previous-note - (kbd "]d") 'org-roam-dailies-goto-next-note)) + (kbd "-") 'org-priority-down)) (add-hook 'org-mode-hook (lambda () @@ -139,7 +129,17 @@ ;; roam (when (gx/maybe-require-package 'org-roam) (autoload 'org-roam-node-find "org-roam-node") + (autoload 'org-roam-dailies-goto-today "org-roam-dailies") (add-hook 'org-mode-hook 'org-roam-db-autosync-mode)) +(with-eval-after-load 'evil + (evil-define-key 'normal 'global + (kbd "<leader>fn") 'org-roam-node-find + (kbd "<leader>cn") 'org-roam-dailies-goto-today) + (evil-define-key 'normal org-mode-map + (kbd "<leader><SPC>b") 'org-roam-buffer-toggle + (kbd "<leader>in") 'org-roam-node-insert + (kbd "[d") 'org-roam-dailies-goto-previous-note + (kbd "]d") 'org-roam-dailies-goto-next-note)) (setq org-roam-directory (file-truename "~/words")) (setq org-roam-db-gc-threshold most-positive-fixnum) (setq org-roam-dailies-directory "journals/") |