Config: add org-ql config, fix coding system of ripgrep
This commit is contained in:
@@ -305,7 +305,18 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
|
||||
|
||||
;; heading菜单
|
||||
(with-eval-after-load 'org
|
||||
(define-key org-mode-map (kbd "C-c i") 'consult-org-heading))
|
||||
(define-key org-mode-map (kbd "C-c i") 'consult-org-heading))
|
||||
|
||||
;; 用consult检索org-agenda-file标题
|
||||
(global-set-key (kbd "C-c o s") 'consult-org-agenda)
|
||||
|
||||
;; 用ripgrep搜索org-agenda-file
|
||||
(defun my/org-agenda-rifle (dirs-to-exclude)
|
||||
"Jump to org agenda files use consult-ripgrep."
|
||||
(interactive)
|
||||
(consult-ripgrep org-agenda-files)
|
||||
|
||||
(global-set-key (kbd "C-c o g") 'my/org-agenda-rifle)
|
||||
|
||||
;; 存储一个链接
|
||||
(global-set-key (kbd "C-c l") 'org-store-link)
|
||||
@@ -319,6 +330,10 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
|
||||
'(define-key calendar-mode-map (kbd "j o") 'org-journal-open-entry-for-editing)
|
||||
'(define-key calendar-mode-map (kbd "<RET>") 'org-journal-open-entry-for-editing)))
|
||||
|
||||
;; org-ql
|
||||
(global-set-key (kbd "C-c q s") 'org-ql-search)
|
||||
(global-set-key (kbd "C-c q v") 'org-ql-view)
|
||||
|
||||
;; 日记
|
||||
(defun org-journal-open-current-journal-file-delete-other-window()
|
||||
"Call org-journal-open-current-journal-file and delete other window."
|
||||
|
||||
Reference in New Issue
Block a user