Compare commits
3 Commits
7e2860a9d9
...
1ac4e44f86
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ac4e44f86 | |||
| 731039e84f | |||
| cff8720a44 |
@ -294,13 +294,19 @@ In ~%s~:
|
|||||||
;;; Refiling
|
;;; Refiling
|
||||||
|
|
||||||
(defun db/verify-refile-target ()
|
(defun db/verify-refile-target ()
|
||||||
"Verify that a certain location is eligible as a refile target.
|
"Verify that a certain location is eligible as a refile target."
|
||||||
In other words, exclude tasks with a done state and those with
|
|
||||||
tag PERIODIC."
|
|
||||||
(and
|
(and
|
||||||
;; Exclude DONE state tasks from refile targets (from bh)
|
;; Exclude DONE state tasks from refile targets (from bh)
|
||||||
(not (member (nth 2 (org-heading-components))
|
(not (member (nth 2 (org-heading-components))
|
||||||
org-done-keywords))))
|
org-done-keywords))
|
||||||
|
;; Exclude NOTE entries in `db/org-default-org-file', as those are project
|
||||||
|
;; notes that should not have proper tasks as children (use links to connect
|
||||||
|
;; those tasks to the project notes instead)
|
||||||
|
(not (and (member "NOTE" (org-get-tags))
|
||||||
|
(not (null (buffer-file-name)))
|
||||||
|
(not (null db/org-default-org-file))
|
||||||
|
(file-equal-p (buffer-file-name)
|
||||||
|
db/org-default-org-file)))))
|
||||||
|
|
||||||
|
|
||||||
;;; Reset checklists
|
;;; Reset checklists
|
||||||
|
|||||||
@ -443,8 +443,9 @@ Does not replace CRLF with CRCRLF, and so on."
|
|||||||
(defun db/sync-magit-repos-from-projectile ()
|
(defun db/sync-magit-repos-from-projectile ()
|
||||||
"Update repositories known to magit from projectile's."
|
"Update repositories known to magit from projectile's."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(eval-when-compile ; to silence the byte compiler
|
||||||
(require 'projectile)
|
(require 'projectile)
|
||||||
(require 'magit)
|
(require 'magit))
|
||||||
(setq magit-repository-directories
|
(setq magit-repository-directories
|
||||||
(mapcar
|
(mapcar
|
||||||
(lambda (dir)
|
(lambda (dir)
|
||||||
@ -464,7 +465,7 @@ Does not replace CRLF with CRCRLF, and so on."
|
|||||||
(delete-trailing-whitespace))
|
(delete-trailing-whitespace))
|
||||||
|
|
||||||
|
|
||||||
;; Base45 Decoding
|
;;; Base45 Decoding
|
||||||
|
|
||||||
;; This is based on https://datatracker.ietf.org/doc/draft-faltstrom-base45/,
|
;; This is based on https://datatracker.ietf.org/doc/draft-faltstrom-base45/,
|
||||||
;; which in turned may be used in data encoded for QR codes.
|
;; which in turned may be used in data encoded for QR codes.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user