1

For example: (define f (lambda (x) (* x 2))) when I wrote lambda and pressed space, the word "lambda" is replaced with λ. How can I disable this replacement?

Ladih
  • 791
  • 1
  • 12
  • 22

2 Answers2

2

Run this

M-x global-prettify-symbols-mode

to disable it for the current session. Or put this in your init.el

(global-prettify-symbols-mode -1)

to disable it completely. It will kill the entire prettifying behavior, see this answer if you need finer grain control.

Community
  • 1
  • 1
Yuri Steinschreiber
  • 2,648
  • 2
  • 12
  • 19
  • 1
    It doesn't work in my case, but I figured out what causes that to happen. I simply deleted this line `(add-hook 'racket-mode-hook #'racket-unicode-input-method-enable)` in `.emacs`. – Ladih Sep 11 '16 at 00:17
  • OP: Please consider posting your comment here as an answer. You can accept your own answer. That will remove the question from the unanswered questions list. – Drew Sep 11 '16 at 03:59
1

I figured out what causes that to happen. I simply deleted this line (add-hook 'racket-mode-hook #'racket-unicode-input-method-enable) in .emacs.

Ladih
  • 791
  • 1
  • 12
  • 22