[oni-org] Use ‘grep -E’ instead of ‘egrep’
‘egrep’ doesn’t seem to be a program that exists on Windows, even after installing the GNU coreutils through at least Cygwin and MSYS2.
This commit is contained in:
parent
ee6dd64430
commit
0a2bbffa1a
1 changed files with 5 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2021.0815.233720
|
;; Version: 2021.0830.135920
|
||||||
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti)
|
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -539,14 +539,16 @@ also move point to the start of the heading."
|
||||||
(mapcar (lambda (file) (expand-file-name file oni-org-exocortex-directory))
|
(mapcar (lambda (file) (expand-file-name file oni-org-exocortex-directory))
|
||||||
(split-string
|
(split-string
|
||||||
(let ((default-directory oni-org-exocortex-directory))
|
(let ((default-directory oni-org-exocortex-directory))
|
||||||
(shell-command-to-string "egrep -l \"^\\\\*+ (TODO|WIP|BLOCKED|DONE|READ|READING|FINISHED|STOPPED|WATCH|WATCHING|WATCHED|LISTEN|LISTENING|CANCELLED)\" *.org"))
|
(shell-command-to-string "grep -E -l \"^\\\\*+ (TODO|WIP|BLOCKED|DONE|READ|READING|FINISHED|STOPPED|WATCH|WATCHING|WATCHED|LISTEN|LISTENING|CANCELLED)\" *.org"))
|
||||||
"\n" t))))
|
"\n" t))))
|
||||||
(setq org-agenda-tags-todo-honor-ignore-options t)
|
(setq org-agenda-tags-todo-honor-ignore-options t)
|
||||||
(setq org-agenda-todo-ignore-scheduled 'future)
|
(setq org-agenda-todo-ignore-scheduled 'future)
|
||||||
(setq org-agenda-restore-windows-after-quit t)
|
(setq org-agenda-restore-windows-after-quit t)
|
||||||
|
|
||||||
(setq org-agenda-custom-commands
|
(setq org-agenda-custom-commands
|
||||||
'(("i" "Inbox" todo ""
|
'(("i"
|
||||||
|
"Inbox: The giant list of things that I haven’t sorted through yet."
|
||||||
|
todo ""
|
||||||
((org-agenda-files (list org-default-notes-file))
|
((org-agenda-files (list org-default-notes-file))
|
||||||
(org-agenda-cmp-user-defined (lambda (_ _) -1))
|
(org-agenda-cmp-user-defined (lambda (_ _) -1))
|
||||||
(org-agenda-sorting-strategy '(user-defined-up))))
|
(org-agenda-sorting-strategy '(user-defined-up))))
|
||||||
|
|
Loading…
Reference in a new issue