summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-11-10 22:51:55 -0500
committerKyle Meyer <kyle@kyleam.com>2016-11-10 22:52:52 -0500
commit522585c69ee8766fd921d4a778204e1fcfaaf338 (patch)
tree7b120b238c77976c663bb1d88947296622235124
parentdce649b7439346a710fce7860368128af6d452be (diff)
downloademacs.d-522585c69ee8766fd921d4a778204e1fcfaaf338.tar.gz
Move km/org-agenda-refile-targets to km-untracked.el
-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)))