Fork me on GitHub
#emacs
<
2022-11-10
>
teodorlu07:11:21

Hi! Is it possible to escape 14. august in the beginning of a paragraph? Quick context: in Norwegian, we write "August 14th" as "1. august". I've got a paragraph starting with that. And when I run my HTML export, I get $FIRST_IMAGE. I really want $SECOND_IMAGE. I'm aware I can work around this with $THIRD_IMAGE. Any ideas?

TMac09:11:34

This is a hack, and I look forward to somebody posting a real answer, but I have

(defun insert-zero-width-space ()
  (interactive)
  (insert-char #x200b))
defined, and putting a zero-width space before the 14 solves your problem. The reason I have it is for when I need to format parts of a word (and org-mode expects formatting characters to have whitespace on the side)

teodorlu12:11:02

Aaaah, nice! That's a great idea. I think I can use this for something else I've been struggling with too. Thank you! 😊

TMac10:11:21

If I run emacs foo.clj from the terminal, I get an Emacs with three buffers: *scratch*, *Messages*, and foo.clj and have to q out of the first two before I see the Clojure file. This is despite inhibit-startup-screen being t and initial-buffer-choice being nil. How do I set it so that the file passed in on the command line is the first buffer to be shown?

dakra12:11:29

It's probably something in your config. If I run /usr/bin/emacs -nw -Q foo.clj the first buffer is foo.clj. It also works for me with my config (without -Q). That's not helping you fix your problem but at least a pointer that it's not normal ;)

Casey12:11:15

I'm looking for the lispy/lispyville function to "promote" an sexp, that is replace the parent sexp with the current sexp. Anyone know what that's called?

magnars12:11:44

It's "raise"

magnars12:11:15

So cljr-raise-sexp for instance, or paredit-raise-sexp

magnars12:11:59

The difference between these two is that the clj-refactor version knows that #inst "2022" is one expression, as an example.

👍 1
Casey12:11:57

Thanks magnars!

Benjamin14:11:19

you can mark symbol into < > to select multiple like #inst "2022" , then raise will raise them together. I do this a lot. Also there is 2 flavors to raise r and R, both are useful 😛

Benjamin14:11:14

while you are marking things, d is still available to swap the direction, < and > swap their meaning then, it's joyful