This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-04
Channels
- # adventofcode (161)
- # asami (2)
- # babashka (56)
- # beginners (128)
- # calva (57)
- # cider (10)
- # circleci (1)
- # clj-kondo (4)
- # clojure (13)
- # clojure-europe (44)
- # clojure-france (32)
- # clojure-italy (3)
- # clojure-nl (18)
- # clojure-spec (7)
- # clojure-uk (26)
- # clojurescript (18)
- # code-reviews (15)
- # community-development (7)
- # conjure (5)
- # cryogen (8)
- # cursive (31)
- # datomic (18)
- # emacs (8)
- # events (4)
- # figwheel-main (7)
- # fulcro (42)
- # juxt (3)
- # kaocha (58)
- # lambdaisland (1)
- # malli (1)
- # minimallist (1)
- # pathom (11)
- # pedestal (9)
- # re-frame (28)
- # reagent (20)
- # reclojure (4)
- # releases (1)
- # reveal (23)
- # schema (2)
- # shadow-cljs (7)
- # test-check (67)
- # xtdb (23)
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 ?
@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...
> pasting weird stuff into Emacs Perfect ! :) Thank you.
Just find this article by Bozhidar Batsov https://emacsredux.com/blog/2014/07/25/configure-the-scratch-buffers-mode/
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
I also bind F5 key to switch to scratch. When ever I need to write some stuffs, I just press F5 for refresh air.
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.)
Thank you for your tricks.
Forgot that you could C-x b
to non-existing buffer !