Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is clojure-mode replacing fn with some curly f character?

Tags:

emacs

clojure

I've just started using emacs starter kit & clojure-mode. Now, when I type or paste '(fn' into a buffer in clojure mode, the 'fn' characters get replaced in the window with a slightly curly lower case f. The buffer is saved correctly, but it's extremely annoying, especially as I discovered the feature the hard way - puzzling over someone's 'impossible' code snippet and editing it down to a one-liner before light dawned. Any idea why it does this, or more importantly, how to switch it off?

like image 612
fizzer Avatar asked Dec 28 '22 21:12

fizzer


1 Answers

It can be turned off by adding the following line to your init.el after loading starter-kit-lisp.

(remove-hook 'clojure-mode-hook 'esk-pretty-fn)

Then re-load Emacs for it to take effect.

like image 89
Jeremy Avatar answered Mar 08 '23 14:03

Jeremy