Questions tagged [prettify-symbols-mode]

24 questions
8
votes
3 answers

Is it possible to get prettified symbols in Org-mode source blocks?

I have a few symbols in prettify-symbols-alist that improve the appearance of elisp code in my configuration file. I am migrating my configuration file from Elisp to Org-mode and I would like to keep the prettified symbols. Is this possible to…
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
7
votes
1 answer

Configuring Prettify Symbols Mode

I've configured prettify-symbols-mode as below. However, only in the scratch buffer is any drawing performed. Further, lambda (λ) is the only multi-character token drawn as a unicode glyph. Is something missing or incorrectly set in the prettify…
Ari
  • 339
  • 2
  • 6
7
votes
3 answers

prettify-symbols-mode character replacement regex

I'm using the new emacs 24.4 prettify-symbols-mode, but it isn't behaving consistently. I turn it on with: (prettify-symbols-mode t) (global-prettify-symbols-mode t) And I'm trying to change the way python source code looks with the follownig…
mankoff
  • 4,108
  • 1
  • 22
  • 39
5
votes
1 answer

Export pretty symbols in org source blocks?

I make substantial use of prettify-symbols in my programming buffers. A snippet of some of my python symbols: (add-hook 'python-mode-hook (lambda () (mapc (lambda (pair) (push pair prettify-symbols-alist)) '(("for"…
Eric Kaschalk
  • 281
  • 1
  • 6
4
votes
1 answer

prettify-symbols-mode and multi-character replacements?

With prettify-symbols-mode it is possible to replace strings by a character, or a character composition, e.g. ;; \lambda → λ (push '("\\lambda" . ?λ) prettify-symbols-alist) Optionally, it allows combining multiple characters, which will be put on…
kdb
  • 1,561
  • 12
  • 21
4
votes
1 answer

How to add symbols to prettify and pretty modes?

I am trying to configure Emacs with ProofGeneral (the Coq IDE) to display mathematical symbols in place of the abbreviations ->, =>, forall and exists. My current .emacs script is as follows: ;; Open .v files with Proof General's Coq mode (load…
ryan221b
  • 151
  • 5
4
votes
1 answer

Using Prettify Symbols with strings instead of characters

I want to the prettify-symbols-mode functionality, but using strings instead of chars as visual replacements: ;; typical replacement for chars (push '("lambda" . ?λ) prettify-symbols-alist) (defun my/add-visual-replacement (whatwith) ;; answer to…
Felipe Lema
  • 737
  • 3
  • 11
4
votes
0 answers

Prettify symbols without screwing up alignment

Is there a way to prettify symbols without running into alignment issues? E.g. replacing not with ¬is visually pleasing, but screws up code alignment, b/c not is 3 chars while ¬ is one char. Since prettifying symbols only changes the way text is…
Tianxiang Xiong
  • 3,848
  • 16
  • 27
4
votes
0 answers

prettify-symbols-mode not working in auctex

In my .emacs file, I have (global-prettify-symbols-mode), and if I visit a .el document, I see the lambda character instead of lambda. My understanding is that in a .tex file I should see the beta character instead of \beta, but this does not seem…
Alex
  • 1,028
  • 5
  • 20
3
votes
1 answer

Disable 'beautification' of text when point is on same line in org

When writing org documents, some parts of the text (like links and figures) automatically get 'beautified' (I'm unsure what the technically correct term is), meaning that some surrounding text elements (e.g. the brackets) gets hidden…
n0542344
  • 185
  • 4
3
votes
1 answer

How to prettify symbols inside comments?

I'm using prettify-symbol mode together with Pragmata Pro.el. Ligatures work perfectly fine in the source code but for some reason with comments they don't. I think I'm missing something since it's not the first time I've fought with ligatures in…
FieryCod
  • 167
  • 6
3
votes
0 answers

Remove surrounding markup when prettifying symbols

Is there any way to get Emacs to hide surrounding markup when prettifying? That's a feature I really miss from Vim. For example, when editing LaTeX in Vim, the conceal feature can be made to replace not just a string with an associated character,…
2
votes
1 answer

Disable Prettify-Symbols for C-mode

I'm using doom emacs. It enables prettify-symbols in all modes (I think) by default, although I would like to disable it in c-mode. I have placed the following in my config.el file: (add-hook 'c-mode-hook (lambda () …
Aronurr64
  • 23
  • 3
2
votes
2 answers

prettify-symbols-mode enabled for major mode, but ligatures don't show until toggling prettify on and off

I'm pretty new to emacs and giving it a shot because it seems to be much better integrated with the OCaml tool chain than any other editor. Since OCaml uses a lot of symbols, I want to enable ligature support. If it's relevant, I'm using spacemacs.…
Evan
  • 121
  • 2
2
votes
1 answer

Fira Code Ligatures: What is the flying trashcan icon replacing colons in Python buffers?

There is a strange icon appearing in place of colons (:) in my Python buffers. I cannot identify it easily using C-x = or any other command to inspect the character at the point because the icon switches back to a colon when the cursor is on the…
Metropolis
  • 529
  • 2
  • 16
1
2