summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el5
-rw-r--r--lisp/km-org.el5
2 files changed, 1 insertions, 9 deletions
diff --git a/init.el b/init.el
index 8039e1b..82e6c1b 100644
--- a/init.el
+++ b/init.el
@@ -348,10 +348,7 @@
(define-key org-mode-map [remap org-agenda-set-restriction-lock]
#'km/org-agenda-set-restriction-lock))
(after 'ox-md
- (advice-add 'org-md-paragraph :filter-return #'km/org-md-fill-string))
- :config
- (add-to-list 'safe-local-variable-values
- (cons 'org-refile-targets km/org-agenda-refile-targets)))
+ (advice-add 'org-md-paragraph :filter-return #'km/org-md-fill-string)))
(use-package poporg
:defer t
diff --git a/lisp/km-org.el b/lisp/km-org.el
index 5360b7c..4805ad5 100644
--- a/lisp/km-org.el
+++ b/lisp/km-org.el
@@ -451,11 +451,6 @@ displayed in the agenda."
;;; Refiling
-(defvar km/org-agenda-refile-targets
- '((nil :maxlevel . 3)
- (org-agenda-files :maxlevel . 2)
- (org-agenda-text-search-extra-files :maxlevel . 2)))
-
(defun km/org-refile-verify-target ()
"Exclude DONE state from refile targets."
(not (member (nth 2 (org-heading-components)) org-done-keywords)))