~mwshinn/+junk/notes

« back to all changes in this revision

Viewing changes to notes2-mode.el

  • Committer: Max Shinn
  • Date: 2014-01-31 02:20:14 UTC
  • Revision ID: trombonechamp@gmail.com-20140131022014-589yrx7guetzft9v
Updates to notes2-mode for emacs24

Show diffs side-by-side

added added

removed removed

Lines of Context:
991
991
  :group 'notes2-faces)
992
992
 
993
993
(defface notes2-important-face
994
 
  '((t (:inherit font-lock-variable-name-face :weight bold :foreground "#ff0000")))
 
994
  '((t (:inherit bold :foreground "#ff0000")))
995
995
  "Face for bold text."
996
996
  :group 'notes2-faces)
997
997
 
1086
1086
  :group 'notes2-faces)
1087
1087
 
1088
1088
(defface notes2-todo-face
1089
 
  '((t (:inherit font-lock-warning-face)))
 
1089
  '((t (:inherit bold :foreground "#ff0000")))
1090
1090
  "Face for TODO entries."
1091
1091
  :group 'notes2-faces)
1092
1092
 
1305
1305
   (cons notes2-regex-link-inline '((2 notes2-url-face t)
1306
1306
                                      (4 notes2-link-face t)))
1307
1307
   (cons notes2-regex-update 'notes2-update-face)
1308
 
   (cons notes2-regex-todo 'notes2-todo-face)
 
1308
   (cons notes2-regex-todo 'notes2-important-face)
1309
1309
   (cons notes2-regex-bold 'notes2-bold-face)
1310
1310
   (cons notes2-regex-italic 'notes2-italic-face)
1311
1311
   (cons notes2-regex-important '((1 notes2-important-face t)))
3630
3630
   ;; Blockquote
3631
3631
   ((looking-at "^[ \t]*>[ \t]*")
3632
3632
    (match-string-no-properties 0))
 
3633
   ;; Important "-> " designator
 
3634
   ((save-excursion 
 
3635
      (re-search-backward "\n\n")
 
3636
      (forward-char 2)
 
3637
      (looking-at "-> "))
 
3638
    "   ")
3633
3639
   ;; Comment
3634
3640
   ((looking-at "^[ \t]*#[ \t]*")
3635
3641
    (match-string-no-properties 0))
3766
3772
  ;; do the initial link fontification
3767
3773
  ;(notes2-fontify-buffer-wiki-links)
3768
3774
  (orgtbl-mode)
3769
 
  ;(org-link-minor-mode)
 
3775
  (org-link-minor-mode)
3770
3776
  )
3771
3777
 
3772
3778
;;(add-to-list 'auto-mode-alist '("\\.text$" . notes2-mode))