Add documentation and some basic niceties
This commit is contained in:
parent
05628fa8b6
commit
90c41c3b4c
|
@ -1,8 +1,12 @@
|
||||||
# gemini-mode
|
# gemini-mode
|
||||||
## A simple syntax-highlighting mode for text/gemini
|
## 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
|
### This is a sub-subheading
|
||||||
|
|
||||||
|
=> gemini://gus.guru/ GUS (Gemini Universal Search)
|
||||||
|
|
||||||
#### This is a sub-sub-subheading
|
#### This is a sub-sub-subheading
|
||||||
|
|
||||||
##### We can go deeper.
|
##### We can go deeper.
|
||||||
|
@ -16,4 +20,3 @@
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
=> gemini://gus.guru/ GUS (Gemini Universal Search)
|
|
||||||
|
|
|
@ -54,6 +54,11 @@
|
||||||
|
|
||||||
(define-derived-mode gemini-mode text-mode "gemini"
|
(define-derived-mode gemini-mode text-mode "gemini"
|
||||||
"Major mode for editing text/gemini 'geminimap' documents"
|
"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)
|
(provide 'gemini-mode)
|
||||||
|
|
Loading…
Reference in a new issue