branch: master commit 2cb03c48f44a5b3cbbbbe05e9841b2c61bd8ed81 Author: Vitalie Spinu <spinu...@gmail.com> Commit: Vitalie Spinu <spinu...@gmail.com>
Version 1.2 --- company-math.el | 10 ++++++---- readme.md | 8 +++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/company-math.el b/company-math.el index 0bcf409..faa9bc9 100644 --- a/company-math.el +++ b/company-math.el @@ -4,8 +4,8 @@ ;; Author: Vitalie Spinu ;; URL: https://github.com/vspinu/company-math ;; Keywords: Unicode, symbols, completion -;; Version: 1.1 -;; Package-Requires: ((company "0.8.0") (math-symbol-lists "1.0")) +;; Version: 1.2 +;; Package-Requires: ((company "0.8.0") (math-symbol-lists "1.2")) ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; @@ -45,12 +45,14 @@ :type 'string) (defcustom company-math-subscript-prefix "_" - "Prefix to use for unicode subscripts." + "Prefix to use for unicode subscripts. +It will also work after `company-math-symbol-prefix'." :group 'company-math :type 'string) (defcustom company-math-superscript-prefix "^" - "Prefix to use for unicode subscripts." + "Prefix to use for unicode subscripts. +It will also work after `company-math-symbol-prefix'." :group 'company-math :type 'string) diff --git a/readme.md b/readme.md index 2b18dbd..497b310 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ This add-on defines three *[company-mode](http://company-mode.github.io/)* backe  -* `company-math-symbols-unicode` - unicode symbols (_by default, active everywhere except math faces_) +* `company-math-symbols-unicode` - math unicode symbols and sub(super)scripts (_by default, active everywhere except math faces_)  @@ -14,11 +14,13 @@ This add-on defines three *[company-mode](http://company-mode.github.io/)* backe Start math completion by typing the prefix <kbd>`\`</kbd> key. To select the completion type <kbd>RET</kbd>. Depending on the context and your configuration -unicode symbol or latex tag will be inserted. +unicode symbol or latex tag will be inserted. Since version 1.2 sub(super)script +completion is available for unicode backend. Subscripts can be inserted either +with `_` or `\_` prefix. Superscripts with `^` or `\^` prefixes. ## Activation ## -Install from [MELPA](http://melpa.milkbox.net/) repository. +Install from ELPA or MELPA repositories. You can either register each backend globally: