From 1be5df85d78f7a716cd89429c64c75ee855710b9 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 30 Apr 2022 08:55:40 +0800 Subject: Update orgmode config (emacs) --- .emacs.d/lisp/init-org.el | 26 +++++++++++++------------- 1 file 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 "a") 'org-agenda (kbd "l") 'org-store-link - (kbd "C") 'org-capture - (kbd "fn") 'org-roam-node-find - (kbd "cn") 'org-roam-dailies-goto-today) + (kbd "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 "l") 'org-toggle-link-display - (kbd "b") 'org-roam-buffer-toggle ;; set (kbd "ss") 'org-schedule @@ -46,8 +40,7 @@ ;; insert (kbd "il") 'org-insert-link - (kbd "ih") 'org-insert-heading - (kbd "in") 'org-roam-node-insert + (kbd "ih") 'org-i (kbd "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 "fn") 'org-roam-node-find + (kbd "cn") 'org-roam-dailies-goto-today) + (evil-define-key 'normal org-mode-map + (kbd "b") 'org-roam-buffer-toggle + (kbd "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/") -- cgit v1.2.3