Commit Graph

52 Commits

Author SHA1 Message Date
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
a381f59261 Fix #2807: not enough args for format string 2020-04-03 02:12:50 -04:00
07e8032291 Fix #2807: wrong-type-arg stringp error
And minor refactor.
2020-04-03 01:41:49 -04:00
a8f34f0f81 Fix permission-error on +pretty-code/install-patched-font #2807 2020-04-02 05:10:42 -04:00
4ca30d50e2 Fix #2807: wrong-number-of-args on install-patched-font 2020-04-01 12:03:56 -04:00
93c3749350 ui/pretty-code: refactor & add README.org #1166 2020-03-31 01:01:13 -04:00
91f3d677d7 Fix formatting 2020-03-16 12:22:23 +00:00
2077a859d8 Fix type in Hasklig install messages 2020-02-25 22:09:37 +00:00
d6356d9618 Add hasklig font install 2020-02-25 22:07:00 +00:00
dea0320a1a Add FiraCode download 2020-02-25 21:50:29 +00:00
41140787a1 Add generic font install function for pretty-code 2020-02-25 21:39:37 +00:00
8ee2e327a0 Add autoload cookie to iosevka autoloads 2020-02-25 20:52:47 +00:00
2e15387999 Move iosevka changes into pretty-code/autoload 2020-02-25 19:55:33 +00:00
3a257cfc56 Merge remote-tracking branch 'origin/develop' into download-iosevka 2020-02-25 19:50:12 +00:00
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
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
45e9f2cffc ui/pretty-code: add missing fira ligatures 2019-12-26 16:50:49 -05:00
026fa8e65b ui/pretty-code: use mac-auto-operator-composition-mode 2019-12-26 16:50:49 -05:00
34e30e0f39 Add +pretty-code/install-iosevka-font 2019-11-08 10:47:32 +00:00
d10c2f6cb9 ui/pretty-code: fix duplicate in fira ligatures
Relevant to #743
2019-11-03 14:17:03 -05:00
74d87a1e24 ui/pretty-code: minor reformatting 2019-10-28 23:23:14 -04:00
7784b2215b Update PragmataPro Ligatures 2019-10-19 17:16:39 -04:00
2d365619cd General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
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
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
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
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
a11e78d710 Change src_block_end to left arrows 2018-12-06 17:05:55 +11:00
5c294f5b01 ui/pretty-code: :src_block_end = "»"
In some cases, emacs fontification struggles with whitespace symbols.
2018-12-05 22:11:54 -05:00
e3a0ad0b33 set-pretty-symbols!: rename rest -> plist
A more sensibile name.
2018-10-16 17:32:41 -04:00
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
aaa21698e9 ui/pretty-code: don't error on non-existent symbol
Users may want to customize the symbol list entirely, rather than modify
in place.
2018-09-30 16:19:17 -04:00
cbc59f9333 Appease the byte-compiler 2018-07-30 12:10:11 +02:00
0c63298253 No prettify-symbols-mode in special modes
Fixes issues with magit popups losing their color.
2018-07-12 16:43:37 +02:00
ae21b90278 Merge pull request #748 from aidangilmore/develop
ui/pretty-code: Added support for PragmataPro font
2018-07-09 23:52:16 +02:00
b8179ca236 ui/pretty-code: Added support for PragmataPro font 2018-07-09 14:38:31 -04:00
04c66829eb Don't init prettify-symbols-mode in special modes
Or eshell, term and comint modes.
2018-07-08 13:43:18 +02:00
2fa8599364 ui/pretty-code: fix wrong-number-of-args: eq error
And minor refactor
2018-07-06 20:42:51 +02:00
fc87a72904 ui/pretty-code: general refactor & fix premature ) 2018-07-06 20:32:00 +02:00
2a125000ae Fix & document set-pretty-symbols! 2018-07-06 20:31:59 +02:00
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
fcbf221267 Add new symbols. 2018-06-23 18:14:01 -03:00
5531d7115a Fix indentation for many autodef setters 2018-06-22 01:49:21 +02:00
8c5deef5fc Fix unintern calls (missing second argument) 2018-06-22 01:49:21 +02:00
d01f39d658 Add unsetting capability to set-pretty-symbols!
+ Allows (set-pretty-symbols! 'some-mode nil)
+ Changes the semantics of +pretty-code-enabled-modes, which is now t by
  default (meaning enable all modes). It also supports '(not ...).
2018-06-22 01:49:19 +02:00
ca2c8b5a45 Minor refactor, across the board
Do you see the board? Now look at the other side. That's how far this
refactor extends.

Yes.
2018-06-18 15:02:24 +02:00
01d4223f18 Fix prettify-symbols not unprettifying at point
defvar wasn't being set soon enough.
2018-06-17 18:25:13 +02:00
6b73f408aa Remove prettify-utils dependency 2018-06-17 18:25:08 +02:00
30c5f2fa26 set-pretty-symbols!: add :iosevka, :merge & :alist
MORE. POWER.
2018-06-17 02:21:46 +02:00
e50b485948 All hail, our glorious byte compiler
Hush. Stop your complaining.
2018-06-16 21:19:57 +02:00