Variable: denote-faces-matchers

denote-faces-matchers is a variable defined in denote.el.

Value

((denote-faces-directory-matcher (goto-char (match-beginning 0))
				 (goto-char (match-end 0))
				 (0 'denote-faces-subdirectory nil t))
 ("\\(?1:[0-9]\\{4\\}\\)\\(?2:[0-9]\\{2\\}\\)\\(?3:[0-9]\\{2\\}\\)\\(?7:T\\)\\(?4:[0-9]\\{2\\}\\)\\(?5:[0-9]\\{2\\}\\)\\(?6:[0-9]\\{2\\}\\)"
  (goto-char (match-beginning 0)) (goto-char (match-end 0))
  (1 'denote-faces-year nil t) (2 'denote-faces-month nil t)
  (3 'denote-faces-day nil t) (4 'denote-faces-hour nil t)
  (5 'denote-faces-minute nil t) (6 'denote-faces-second nil t)
  (7 'denote-faces-delimiter nil t))
 (denote-faces-identifier-matcher (goto-char (match-beginning 0))
				  (goto-char (match-end 0))
				  (0 'denote-faces-date nil t))
 (denote-faces-title-matcher (goto-char (match-beginning 0))
			     (goto-char (match-end 0))
			     (0 'denote-faces-title nil t))
 (denote-faces-keywords-matcher (goto-char (match-beginning 0))
				(goto-char (match-end 0))
				(0 'denote-faces-keywords nil t))
 (denote-faces-signature-matcher (goto-char (match-beginning 0))
				 (goto-char (match-end 0))
				 (0 'denote-faces-signature nil t))
 ("\\(@@\\|--\\|__\\|==\\)" (goto-char (match-beginning 0))
  (goto-char (match-end 0)) (0 'denote-faces-delimiter nil t))
 ("\\..*$" (goto-char (match-beginning 0)) (goto-char (match-end 0))
  (0 'denote-faces-extension nil t)))

Documentation

Matchers for fontification of file names.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defconst denote-faces-matchers
  `((denote-faces-directory-matcher
     (goto-char (match-beginning 0))
     (goto-char (match-end 0))
     (0 'denote-faces-subdirectory nil t))
    ;; Identifier with format 00000000T000000
    ("\\(?1:[0-9]\\{4\\}\\)\\(?2:[0-9]\\{2\\}\\)\\(?3:[0-9]\\{2\\}\\)\\(?7:T\\)\\(?4:[0-9]\\{2\\}\\)\\(?5:[0-9]\\{2\\}\\)\\(?6:[0-9]\\{2\\}\\)"
     (goto-char (match-beginning 0)) ; pre-form, executed before looking for the first identifier
     (goto-char (match-end 0))       ; post-form, executed after all matches (identifiers here) are found
     (1 'denote-faces-year nil t)
     (2 'denote-faces-month nil t)
     (3 'denote-faces-day nil t)
     (4 'denote-faces-hour nil t)
     (5 'denote-faces-minute nil t)
     (6 'denote-faces-second nil t)
     (7 'denote-faces-delimiter nil t))
    ;; Identifier with general format (not yet possible)
    (denote-faces-identifier-matcher
     (goto-char (match-beginning 0))
     (goto-char (match-end 0))
     (0 'denote-faces-date nil t))
    ;; Title
    (denote-faces-title-matcher
     (goto-char (match-beginning 0))
     (goto-char (match-end 0))
     (0 'denote-faces-title nil t))
    ;; Keywords
    (denote-faces-keywords-matcher
     (goto-char (match-beginning 0))
     (goto-char (match-end 0))
     (0 'denote-faces-keywords nil t))
    ;; Signature
    (denote-faces-signature-matcher
     (goto-char (match-beginning 0))
     (goto-char (match-end 0))
     (0 'denote-faces-signature nil t))
    ;; Delimiters
    ("\\(@@\\|--\\|__\\|==\\)"
     (goto-char (match-beginning 0))
     (goto-char (match-end 0))
     (0 'denote-faces-delimiter nil t))
    ;; Extension
    ("\\..*$"
     (goto-char (match-beginning 0))
     (goto-char (match-end 0))
     (0 'denote-faces-extension nil t)))
  "Matchers for fontification of file names.")