dlesl
6f51f062a7
Enable native ligature support on emacs-28/mac
2020-08-09 16:13:23 +02:00
Paul A. Patience
a282730ce9
Fix typos and reword docstrings
2020-07-23 07:35:31 -04:00
Henrik Lissner
5f3bfa1db1
Fix #3343 : don't re-set char-table on doom/reload
2020-06-10 02:26:26 -04:00
Henrik Lissner
fa1743eee8
Add pretty-symbols-alist support to scala
...
Closes #2705
Co-authored-by: Ashkan <ashkan.aleali@gmail.com>
2020-06-07 14:25:06 -04:00
Gerry Agbobada
8d954d4dad
Add link to emacs-mac-port source code
...
Hopefully this will make it clear that emacs-mac does something special to get ligatures working with the composition-function-table method ; and it serves as an entry point for people who want to get into this kind of detail
2020-05-08 11:18:26 +02:00
Henrik Lissner
bc0477c3ba
Optimize +prog-ligatures-alist
...
But preserve regexp-opt forms for users who want to contribute.
2020-05-06 13:54:41 -04:00
Henrik Lissner
8f4684a69b
Add new iosevka ligatures to composition table
...
Closes #3047
2020-05-06 13:50:18 -04:00
Henrik Lissner
0edbf9cb04
Update & reformat ui/pretty-code readme ToC
2020-05-02 22:49:07 -04:00
Henrik Lissner
ecd354f02e
Fix void-variable composition-ligature-table error
...
And refactor ui/pretty-code
2020-04-30 19:23:49 -04:00
Henrik Lissner
b4f2b25d8c
Merge pull request #2345 from gagbo/feature/harfbuzzed-ligatures
...
Use composite to call harfbuzz for ligatures
2020-04-30 18:39:21 -04:00
Henrik Lissner
c25f88c874
Fix #2995 : ligature & all-the-icons conflicts
...
See domtronn/all-the-icons.el#174
2020-04-30 17:02:24 -04:00
Gerry Agbobada
de0593de38
Add documentation in README
2020-04-30 12:35:11 +02: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
Henrik Lissner
bd58f0ae71
Fix #2995 : doom-modeline save icon & ligature conflict
...
There is no good solution to this. I've decided the ligatures should
lose a character, instead of the modeline losing an icon.
2020-04-28 17:29:11 -04: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
a381f59261
Fix #2807 : not enough args for format string
2020-04-03 02:12:50 -04:00
Henrik Lissner
07e8032291
Fix #2807 : wrong-type-arg stringp error
...
And minor refactor.
2020-04-03 01:41:49 -04:00
Henrik Lissner
a8f34f0f81
Fix permission-error on +pretty-code/install-patched-font #2807
2020-04-02 05:10:42 -04:00
Henrik Lissner
4ca30d50e2
Fix #2807 : wrong-number-of-args on install-patched-font
2020-04-01 12:03:56 -04:00
Henrik Lissner
93c3749350
ui/pretty-code: refactor & add README.org #1166
2020-03-31 01:01:13 -04:00
James Ravn
91f3d677d7
Fix formatting
2020-03-16 12:22:23 +00:00
James Ravn
2077a859d8
Fix type in Hasklig install messages
2020-02-25 22:09:37 +00:00
James Ravn
d6356d9618
Add hasklig font install
2020-02-25 22:07:00 +00:00
James Ravn
dea0320a1a
Add FiraCode download
2020-02-25 21:50:29 +00:00
James Ravn
41140787a1
Add generic font install function for pretty-code
2020-02-25 21:39:37 +00:00
James Ravn
8ee2e327a0
Add autoload cookie to iosevka autoloads
2020-02-25 20:52:47 +00:00
James Ravn
2e15387999
Move iosevka changes into pretty-code/autoload
2020-02-25 19:55:33 +00:00
James Ravn
3a257cfc56
Merge remote-tracking branch 'origin/develop' into download-iosevka
2020-02-25 19:50:12 +00:00
Henrik Lissner
e0b8b4f190
Fix set-pretty-symbols! not merging properties w/ old rules
...
This removes the :merge property, as merging is now its default
behavior.
2020-01-04 04:55:57 -05: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
45e9f2cffc
ui/pretty-code: add missing fira ligatures
2019-12-26 16:50:49 -05:00
Henrik Lissner
026fa8e65b
ui/pretty-code: use mac-auto-operator-composition-mode
2019-12-26 16:50:49 -05:00
James Ravn
34e30e0f39
Add +pretty-code/install-iosevka-font
2019-11-08 10:47:32 +00:00
Henrik Lissner
d10c2f6cb9
ui/pretty-code: fix duplicate in fira ligatures
...
Relevant to #743
2019-11-03 14:17:03 -05:00
Henrik Lissner
74d87a1e24
ui/pretty-code: minor reformatting
2019-10-28 23:23:14 -04:00
Aidan Gilmore
7784b2215b
Update PragmataPro Ligatures
2019-10-19 17:16:39 -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
Gerry Agbobada
6587d67caf
Use +pretty-code-iosevka-font-name on complete set
...
The ligatures are defined for the fontset `#Xe100 -> #Xe1cc` but the hook function did not use that complete space for the ligatures
2019-07-28 18:25:50 +02:00
Henrik Lissner
9a02bd8ac8
Minor refactors across the board
...
- when-let* -> when-let
- Fix projectile-locate-dominating-file for connected remote files
2019-06-26 14:31:06 +02:00
Henrik Lissner
5331a28533
set-pretty-symbols!: fix void-variable mode error
...
Occurs when unsetting pretty symbols for a mode
with (set-pretty-symbols! 'some-mode nil), because of a forgotten loop
and let-var.
2018-12-22 04:25:15 -05:00
Aria
a11e78d710
Change src_block_end to left arrows
2018-12-06 17:05:55 +11:00
Henrik Lissner
5c294f5b01
ui/pretty-code: :src_block_end = "»"
...
In some cases, emacs fontification struggles with whitespace symbols.
2018-12-05 22:11:54 -05:00
Henrik Lissner
e3a0ad0b33
set-pretty-symbols!: rename rest -> plist
...
A more sensibile name.
2018-10-16 17:32:41 -04:00
Henrik Lissner
765ca10a92
Fix set-pretty-symbols! with multiple modes
...
(set-pretty-symbols! '(c-mode c++-mode objc-mode) RULES*)
This fixes a logic bug that prevented RULES from applying to any but the
first mode in the list (e.g. only c-mode will be affected).
2018-10-11 16:06:25 -04:00