Why does clojure -mode replace fn with some curly f character?

I just started using the emacs starter kit and clojure-mode. Now, when I type or paste ' (fn ' into the buffer in clojure mode, the characters ' fn ' are replaced with a slightly curly lower case f in the window. The buffer is saved correctly, but it is very annoying, especially since I found this feature in a difficult way - puzzling someone's โ€œimpossibleโ€ code snippet and editing it to a single-line image before the light is lit. Any idea why this is doing this, or, more importantly, how to turn it off?

+4
source share
3 answers

Sorry to answer my own question. This is in the lisp.el starter kit. Find the line starting with (eval-after-load 'clojure-mode .

+4
source

You can disable it by adding the following line to init.el after loading the lisp starter kit.

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

Then restart Emacs for it to take effect.

+6
source

In emacs live, you can disable this behavior with the following:

In ~/.emacs.d/packs/live/clojure-pack/config/clojure-conf.el comment on the following lines:

 ;;(eval-after-load 'clojure-mode ;; '(font-lock-add-keywords ;; 'clojure-mode `(("(\\(fn\\)[\[[:space:]]" ;; (0 (progn (compose-region (match-beginning 1) ;; (match-end 1) "ฮป") ;; nil)))))) ;; ;;(eval-after-load 'clojure-mode ;; '(font-lock-add-keywords ;; 'clojure-mode `(("\\(#\\)(" ;; (0 (progn (compose-region (match-beginning 1) ;; (match-end 1) "ฦ’") ;; nil)))))) ;; ;;(eval-after-load 'clojure-mode ;; '(font-lock-add-keywords ;; 'clojure-mode `(("\\(#\\){" ;; (0 (progn (compose-region (match-beginning 1) ;; (match-end 1) "โˆˆ") ;; nil)))))) 

Restart emacs and there are no more attractive characters.

0
source

All Articles