[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a500899 3/6: Added additional excludes to the Org example
From: |
Ian Dunn |
Subject: |
[elpa] master a500899 3/6: Added additional excludes to the Org example setup |
Date: |
Mon, 19 Feb 2018 14:20:19 -0500 (EST) |
branch: master
commit a500899b9415ae82166bfb1bda9de14fc11154d3
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Added additional excludes to the Org example setup
* paced.org (Org Agenda Files): Added keywords, heading prefixes, item
bullets,
timestamps, horizontal lines, and todo keywords to excluded items.
---
paced.org | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/paced.org b/paced.org
index 04624dd..6ce0ed0 100644
--- a/paced.org
+++ b/paced.org
@@ -477,6 +477,21 @@ added to ~paced-async.el~:
(when (match-string 1)
(<= (match-beginning 1) p (match-end 1))))))
+(defun org-at-keyword-p ()
+ "Return non-nil if point is at a keyword such as #+TITLE."
+ (save-excursion
+ (beginning-of-line)
+ (looking-at-p "^#\\+")))
+
+(defun org-at-heading-prefix-p ()
+ "Return non-nil if looking at the leading stars of a heading."
+ (looking-at outline-regexp))
+
+(defun org-at-hline-p ()
+ (save-excursion
+ (beginning-of-line)
+ (looking-at-p "^-----")))
+
(defun org-paced-exclude ()
(or
;; Drawers
@@ -484,6 +499,12 @@ added to ~paced-async.el~:
(org-in-regexp ":END:") ;; but this does
(org-at-tag-p) ;; tags
+ (org-at-keyword-p) ;; Keywords, such as #+TITLE
+ (org-at-heading-prefix-p) ;; Leading stars of a heading
+ (org-at-item-bullet-p) ;; Item Bullets
+ (org-at-timestamp-p) ;; Timestamps
+ (looking-at-p org-todo-regexp) ;; TODO keywords
+ (org-at-hline-p) ;; H-lines
(org-at-comment-p) ;; comments
(org-in-regexp org-any-link-re) ;; links
- [elpa] master updated (e65aa3f -> 1143b69), Ian Dunn, 2018/02/19
- [elpa] master a500899 3/6: Added additional excludes to the Org example setup,
Ian Dunn <=
- [elpa] master a17be3a 2/6: Documented new change to dictionary printing, Ian Dunn, 2018/02/19
- [elpa] master c41f462 1/6: Added check for empty dictionary during printing, Ian Dunn, 2018/02/19
- [elpa] master e301a4f 4/6: Regenerated info documentation, Ian Dunn, 2018/02/19
- [elpa] master 1143b69 6/6: Merge commit 'c3683a0a8a611fbd15bb3ec78ccac121843711c9', Ian Dunn, 2018/02/19
- [elpa] master c3683a0 5/6: Fixed bug with non-existent thing at point, Ian Dunn, 2018/02/19