Overview
Comment: | implemented fontification in compose buffer |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
45803d5d77b6511e3d5926b8ace756e7 |
User & Date: | philip@warpmail.net on 2020-03-17 12:31:31 |
Other Links: | branch diff | manifest | tags |
Context
2020-04-24
| ||
08:40 | added sbbs-show-replies check-in: 8395dc0011 user: philip@warpmail.net tags: master, trunk | |
2020-03-17
| ||
12:31 | implemented fontification in compose buffer check-in: 45803d5d77 user: philip@warpmail.net tags: master, trunk | |
11:37 | disabled paragraph filling while composing check-in: 0cea683e16 user: philip@warpmail.net tags: master, trunk | |
Changes
Modified sbbs.el from [c864d8c09d] to [4c0b868675].
︙ | ︙ | |||
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 | (setq-local revert-buffer-function #'sbbs--reload-thread)) (defvar sbbs-compose-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "C-c C-c") #'sbbs-compose-create) map)) (define-derived-mode sbbs-compose-mode text-mode "SchemeBBS Compose" "Major mode for composing replies and starting new threads." (setq-local fill-column most-positive-fixnum) (message "Press C-c C-c to send")) (provide 'sbbs) ;;; sbbs.el ends here | > > > > > > > > > > > > > > > > > > > > > > > | 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 | (setq-local revert-buffer-function #'sbbs--reload-thread)) (defvar sbbs-compose-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "C-c C-c") #'sbbs-compose-create) map)) (defvar sbbs--font-lock ;; stolen/based on from http://textboard.org/prog/81/5 '(;; code ("^```\\(.*\n\\)*?```\n?" . 'sbbs--code-face) ;; bold ("\\*\\*[^ ].*?\\*\\*" . 'bold) ;; italic ("__[^ ].*?__" . 'italic) ;; monospaced ("==[^ ].*?==" . 'shadow) ;; spoiler ("~~[^ ].*?~~" . 'sbbs--spoiler-face) ;; references (">>\\([[:digit:]]+\\(?:-[[:digit:]]+\\)?\\(?:,[[:digit:]]+\\(?:-[[:digit:]]+\\)?\\)*\\)" . 'link) ;; quotes ("^>.*" . font-lock-comment-face)) "Highlighting for SchemeBBS posts") (define-derived-mode sbbs-compose-mode text-mode "SchemeBBS Compose" "Major mode for composing replies and starting new threads." (setq-local comment-start ">") (setq-local comment-start-skip "^>") (setq-local font-lock-defaults '(sbbs--font-lock)) (setq-local font-lock-multiline t) (setq-local fill-column most-positive-fixnum) (message "Press C-c C-c to send")) (provide 'sbbs) ;;; sbbs.el ends here |