Henrik Lissner
ecd354f02e
Fix void-variable composition-ligature-table error
...
And refactor ui/pretty-code
2020-04-30 19:23:49 -04:00
Gerry Agbobada
4cae60014e
Use EMACS28+ and add emacs-mac source code link
2020-04-30 12:35:11 +02:00
Gerry Agbobada
a897492b99
Use regexp-opt instead of manual regexes
...
This helps maintainability tremendously. Thanks wasamasa for the snippet
2020-04-30 12:35:10 +02:00
Gerry Agbobada
8a2f8bf260
Lint code
2020-04-30 12:35:10 +02:00
Gerry Agbobada
9a79069ab5
Version-gate the feature to emacs 28
2020-04-30 12:35:10 +02:00
Gerry Agbobada
03748d48cd
Add the explicit character at the beginning of the regexp
2020-04-30 12:35:09 +02:00
Gerry Agbobada
810baea2ea
Use composite to call harfbuzz for ligatures
...
This is based on code from microsoft -> cascadia-code repository
(issue #153 ), which sets a
proper composition-function-table according to specific ligature regexp.
Using variables also allows to disable the ligatures for org-mode, where
org-bullets might be incompatible
It has a fallback to old pretty-code behaviour.
2020-04-30 12:35:05 +02:00
Undead Kernel
d87edaa44d
lang/org: pretty symbols for old and new style
...
org-mode recently changed the standard for naming blocks.
Previously, it would use capitalized names; now it uses lower case
names.
E.g., #+BEGIN_SRC -> #+begin_src
Also, add a "quote" symbol for the #+begin_quote block.
2020-04-03 12:01:34 +02:00
Henrik Lissner
93c3749350
ui/pretty-code: refactor & add README.org #1166
2020-03-31 01:01:13 -04:00
James Ravn
41140787a1
Add generic font install function for pretty-code
2020-02-25 21:39:37 +00:00
Henrik Lissner
ec7a067109
Enable ligatures on emacs-mac if pretty-code is enabled
...
No longer necessary to enable a font ligature flag for it.
2020-01-02 21:16:02 -05:00
Henrik Lissner
026fa8e65b
ui/pretty-code: use mac-auto-operator-composition-mode
2019-12-26 16:50:49 -05:00
Henrik Lissner
74d87a1e24
ui/pretty-code: minor reformatting
2019-10-28 23:23:14 -04:00
Henrik Lissner
2d365619cd
General refactor & cleanup, across the board
2019-09-13 22:00:34 -04:00
Gerry Agbobada
a15b8e314a
Add Hasklig pretty-code configuration
...
Took the list of symbols from
https://github.com/minad/hasklig-mode/blob/master/hasklig-mode.el ,
only rudimentary testings has been done on this
2019-08-09 20:25:13 +02:00
Henrik Lissner
0c63298253
No prettify-symbols-mode in special modes
...
Fixes issues with magit popups losing their color.
2018-07-12 16:43:37 +02:00
Henrik Lissner
ae21b90278
Merge pull request #748 from aidangilmore/develop
...
ui/pretty-code: Added support for PragmataPro font
2018-07-09 23:52:16 +02:00
Aidan Gilmore
b8179ca236
ui/pretty-code: Added support for PragmataPro font
2018-07-09 14:38:31 -04:00
Henrik Lissner
04c66829eb
Don't init prettify-symbols-mode in special modes
...
Or eshell, term and comint modes.
2018-07-08 13:43:18 +02:00
Henrik Lissner
2fa8599364
ui/pretty-code: fix wrong-number-of-args: eq error
...
And minor refactor
2018-07-06 20:42:51 +02:00
Henrik Lissner
fc87a72904
ui/pretty-code: general refactor & fix premature )
2018-07-06 20:32:00 +02:00
Josh Seba
a7cba67fd6
Support for multiple ligature'd fonts
...
Refactors the ligature configuration to support more than just Iosevka
(uses Fira Code as the second font).
2018-07-05 19:37:06 -07:00