Fork me on GitHub
#emacs
<
2017-12-10
>
qqq12:12:15

I want to use unicode chars, but I want all sources to be ascii. Is there a way to get fn to look like \lambda, and so forth ?

qqq12:12:53

so to be clear, the source file contains fn, but emacs diksplays it as \lambda in the buffer

New To Clojure12:12:04

(λ (x y)
  (if (≥ x y)
      (something)
    (something-else)))

qqq12:12:18

precisely what I wanted; thanks!

qqq12:12:35

@ghsgd2: in return, any quick questions I can help with?

New To Clojure12:12:34

@qqq I have Emacs 25.3.1 built for MacOS. C-x 5 2 shows new frame with giant font which makes it unreadable. Any ideas how to fix that?

qqq12:12:02

I'm using Emacs 25.1 on OSX

qqq12:12:07

I also use C-x 5 2

qqq12:12:11

I've never had the problem you're describing.

qqq12:12:09

I have this in my config:

(progn "config font"
       (add-to-list 'default-frame-alist '(font . "Fira Code 14"))
       (set-default-font "Fira Code 14"))
replace Fira Code 14 with your favorite font, and see if it helps.

qqq12:12:23

I think the default-frame-alist '(font ...) part specifies the font new frames use.

qqq12:12:38

I also have a hydra with:

("9" (set-default-font "Fira Code 14"))
  ("0" (set-default-font "Fira Code 18"))
this lets me easily toggle the font of the current buffer

New To Clojure12:12:47

@qqq That fixed the issue, thank you!

qqq19:12:16

@ghsgd2: prettify-symbols currently gives me: "ascii string -> single unicode char" can I somehow get "ascii string -> unicode string" ? one silly example would be "defn" -> "=\lambda" or something like that

New To Clojure20:12:36

@qqq Good question. I'm not using such feature so could check https://www.emacswiki.org/emacs/PrettySymbol . One of implementations might have support this.

fedreg22:12:52

Have been using emacs with clojure for the past few months with no problems but now trying to work on a cljs reagent app and am having issues with the cljs repl. Specifically, either the repl hangs on compile and does not return an error, or I get errors such as No such namespace: js when trying to do simple js interop. I added this to my emacs config

(setq cider-cljs-lein-repl
        "(do (require 'figwheel-sidecar.repl-api)
           (figwheel-sidecar.repl-api/start-figwheel!)
           (figwheel-sidecar.repl-api/cljs-repl))")
And am just running cider-jack-in-clojurescript after running lein figwheel. What am I missing? Thanks for any help!