Fork me on GitHub
#emacs
<
2017-01-19
>
pesterhazy10:01:29

I'd like to write Markdown in Emacs without adding line breaks, i.e. one line per paragraph. Reasons: - less diff noise - easier editing - less mental overhead Is anyone doing this? It seems like the standard Emacs way is to introduce newlines.

pesterhazy10:01:42

What do you use, @plexus?

pesterhazy11:01:25

Also the one-line-per-paragraph style is better when composing emails, to be pasted into Gmail.

cmack17:01:22

@pesterhazy I follow this method in org-mode with visual-line-mode enabled and auto-fill-mode disabled. Should be similar in markdown-mode

beppu18:01:26

@cmack visual-line-mode is pretty cool. I did not know about it before.

qqq23:01:48

I'm using EVIL in Emacs. I want to bind evil-normal-mode-map 's key "e" to "whatever C-x C-e does in this environment" -- this means executing eval-last-sexp in .el files and cider-eval-last-sexp in .clj files. In emacs, how do I say "whatever C-x C-e is doing in this buffer?"

dpsutton23:01:32

ah, do you know how to set keybindings in general?

dpsutton23:01:51

because the function (key-binding ...) will tell you what function is bound to a key press

dpsutton23:01:25

so you could make a major mode hook change (global-set-key (kbd "whateveryouwant") (key-binding (kbd "C-c C-e")))

qqq23:01:58

I know how to use (global-set-key and (kbd, but I did not know about key-binding; I was searching for functions named things like "get key binding" lol; this solves my problem; thanks!