Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [prettify-symbols-mode]

The tag has no usage guidance.

2
votes
1answer
117 views

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 ...
1
vote
1answer
36 views

Is it possible to have a global prettify-symbols-alist that other modes add to?

Is it possible to have a global prettify-symbols-alist that other modes add to? A lot of major modes override prettify-symbols-alist instead of pushing into it. One solution I thought of is to push ...
1
vote
1answer
210 views

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 ...
2
votes
0answers
35 views

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 ...
4
votes
1answer
572 views

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: ;...
2
votes
1answer
299 views

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 ...
2
votes
1answer
47 views

How to highlight “prettified” symbols?

I would light to highlight where prettify-symbols-mode has prettified a symbol. For example, if Emacs displays lambda as λ it could be displayed with a gray background, but if a literal λ occurs in ...
5
votes
0answers
110 views

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 ...
4
votes
1answer
240 views

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 ...
3
votes
0answers
49 views

Possible to take whitespace into account with prettify symbols? (without removing whitespace)

With a C like language, it might be nice to be able to display: (var * t) as (var x t) - using the unicode multiply symbol. However this causes problems with casting. eg:void fn(MyStruct *s) becomes ...
2
votes
0answers
301 views

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 ...
3
votes
0answers
247 views

Can emacs beautify existing tcl source code?

I'm just getting started with tcl; what sort of beautifier, or prettifier, or formatter, is there for tcl with emacs? My main interest would be to fix existing scripts so that particularly the ...
2
votes
0answers
34 views

How can I export compositions with html-fontify?

Prettify-symbols-mode is a very nice way to make source code more readable, especially in math-heavy languages. Unfortunately, exporting to HTML with html-fontify-buffer doesn't respect ...
7
votes
2answers
660 views

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 ...
5
votes
1answer
635 views

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 ...