Add documentation and some basic niceties

This commit is contained in:
Jason McBrayer 2020-05-20 15:07:31 -04:00
parent 05628fa8b6
commit 90c41c3b4c
2 changed files with 10 additions and 2 deletions

View file

@ -1,8 +1,12 @@
# gemini-mode
## A simple syntax-highlighting mode for text/gemini
This is the first release of gemini.el, a very simple syntax-highlighting mode for text/gemini documents. Currently, support is not complete, but it should be enough to help with basic documents.
### This is a sub-subheading
=> gemini://gus.guru/ GUS (Gemini Universal Search)
#### This is a sub-sub-subheading
##### We can go deeper.
@ -16,4 +20,3 @@
```
=> gemini://gus.guru/ GUS (Gemini Universal Search)

View file

@ -54,6 +54,11 @@
(define-derived-mode gemini-mode text-mode "gemini"
"Major mode for editing text/gemini 'geminimap' documents"
(setq font-lock-defaults '(gemini-highlights)))
(setq font-lock-defaults '(gemini-highlights))
(visual-line-mode 1))
(add-to-list 'auto-mode-alist '("\\.gmi\\'" . gemini-mode))
(add-to-list 'auto-mode-alist '("\\.gemini\\'" . gemini-mode))
(add-to-list 'auto-mode-alist '("\\.geminimap\\'" . gemini-mode))
(provide 'gemini-mode)