emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
2020-12-04T01:02:48.222100Z

ok, thanks 😃

👍 1
2020-12-04T10:08:24.226200Z

An "everyday" Emacs question. What do you use as "empty buffer" when you want to put some writings (long Slack message, ...) in Emacs, but not in a file ? Until now, I tend to use *scratch* disabling elisp-mode (or just ignoring red lines). Is there "better" solutions ?

practicalli-john 2020-12-04T10:10:55.227800Z

@charles.fourdrignier scratch buffer in fundamental-mode for pasting weird stuff into Emacs... this will prevent Emacs font locking and so shouldn't hurt Emacs or slow it down... or give you red lines:) In Spacemacs you can set the default mode the scratch buffer uses, so I assume there is some variable that can be set to do this globally...

bartuka 2020-12-05T19:15:59.231700Z

That is one of Steve Yegge's 10 tips for emacs users https://sites.google.com/site/steveyegge2/effective-emacs "use temp buffers"

👍 1
2020-12-04T10:11:54.227900Z

> pasting weird stuff into Emacs Perfect ! :) Thank you.

2020-12-04T10:17:12.228200Z

Just find this article by Bozhidar Batsov https://emacsredux.com/blog/2014/07/25/configure-the-scratch-buffers-mode/

practicalli-john 2020-12-04T10:20:10.228500Z

Yes, its the same in Spacemacs, it sets initial-major-mode to text mode (which also speeds up loading). Although I configure it to use org-mode as I use that for organising content into sections

2020-12-04T10:51:03.230600Z

I also bind F5 key to switch to scratch. When ever I need to write some stuffs, I just press F5 for refresh air.

Eamonn Sullivan 2020-12-04T11:51:17.230800Z

I often use buffers in Emacs that aren't connected to a file, just to take advantage of the major modes and anything else I've set up for particular modes. For example, when examining a big blob of JSON from a REST API, I'll copy it, switch to a buffer called "whatever.json" and paste it into there. That way I can navigate, reformat, etc., but don't save to a file. I'll do the same with temporary message editing sometimes (a .txt extension turns on spell-checking, etc.)

👍 2
2020-12-04T12:03:29.231Z

Thank you for your tricks. Forgot that you could C-x b to non-existing buffer !