How do you copy text between emacs and other editors such that the spacing and line breaks appear natural? What do i mean by natural? In the picture below i show what an "unnatural" copy from emacs (black area on top) and google docs (white area below) looks like. Here the second row of numbers in emacs has a column width of 80, so it goes onto the next line. Maybe that's ok, but when i copy that line into google docs, it's clearly not ok because that document has "different" rules about formatting. I'm open to ideas, the general idea is that i want to copy text around and have the formatting sync to the destination.
Not sure if it's emacs-idiomatic but I have a couple unfill fns for this https://stackoverflow.com/questions/6707758/inverse-of-m-q-an-unfill-paragraph-function
it works for me because I like 1. very wide buffers and 2. only some kinds of prose to wrap. the downside is that unfill is a manual step before copying to outside of emacs
@macroz that screen is mostly black though, so I doubt that the little green smudges made by the source code would cause the kind of calming that study was talking about :)
if u want calming, have a look at the ef-spring or ef-elea-light themes
https://protesilaos.com/emacs/ef-themes-pictures
there is actually not a single black pixel in there
but if you want to blast your eyes with extra photons all day long, even in the dark times, you can do it
my eyes are already so blasted, i seriously thought ur background is black |-D what theme is it, btw? i like how the var names stick out!
it started out as green-phosphor-theme but I've pretty much gone and changed all the colors to my liking
Big var names are a feature I've unfortunately lost for now, as I have not maintained my fork of clojure-mode which provided extra definitions. It had a similar problem as using other than monospace fonts, i.e. Emacs menus and stuff doesn't align properly. One can live with it though.
here's a couple variations from this year, I've come to like using the background color
describe-face and describe-text-properties are your friends if you want to customize the look
(and of course M-x customize)
I can't say Matrix the movie wasn't an inspiration, old terminals too. I grew up in the age of C-64 and Borland and both those colors tend to be rather π€’ these days. Green is a pleasant color for myself and the anecdote about it being relaxing clinched the deal.
i started with B&W ZX81 and ZX Spectrum, then goldenrod color Hercules monitor, then green CGA one for personal XT machine, before we could afford B&W and colored VGA monitors. i just fired up https://github.com/Swordfish90/cool-retro-term yesterday for the sake of nostalgia :)
looks nice, however I don't use terminal much at all and even then more eshell
it seems to have a ton of dependencies
returning to this months later, copy-as-format-github from org to github just gives me this:
org
#+begin_src clojure
(when update-underlay?
(when (filter-set "isochrones")
(mb/set-multiple-layers-visibility! #"isochrones" false))
(toggle-underlay! ...))
#+end_src
Which isn't the github markdown i expected.picture:
Generally it just doesn't work but I've sometimes had success with htmlize
On Mac-OSX, you can do:
1. highlight text in emacs
2. M-| for shell-command-on-region
3. pbcopy to copy to clipboard
There's probably a similar command to pbcopy for other OS's
https://doc.endlessparentheses.com/Fun/c-toggle-syntactic-indentation.html not sure if this is what you're looking for
I'm assuming the problem is from actually copying extra whitespace and newlines, but maybe it's a different problem.
Thanks, I'll take a look at this. Is the 80 column idea ideal or does it make more sense to let the editor just wrap the text? I feel like the later is better but people prefer former because it means it kinda works everywhere with no effort.
Like i don't even know how to tell each of my frames to "visually" always wrap at 80. I just include the line break at 80.
I let emacs wrap my text but in pretty much all other uses, it depends (could be short tweet, certain paragraph in paper etc.)
The ideal column width is in the eye of the coder
When you say you let it wrap text, do you mean you set a column width?
no, I mean Emacs wraps depending on the size of the window
dynamically
I adjust font-size and window width all the time
is it called visual-line-mode or what
it wraps the text dynamically
but let's say I want to put some code in a presentation slide ... the situation is completely different and I probably must massage it manually, even shorten some variable names etc.
here's a random screenshot of what my Emacs tends to look like
not the best example of this π
Did you know the human eye can detect more shades of green than any other?
according to some study, green is the most relaxing color
I practice hdd: Hate driven development. So i go with all red.
green is the most relaxing colorNot the bright green like yours though. Muted shades of green and blue considered the most relaxing. Bright colors are rather more stimulating and less calming.
i turned off color except on the form my cursor is in. I find too much color distracting.
I keep my colors as pleasant as I can, summer colors, I also find too much color distracting
desaturating the colors a bit would be nice but I haven't bothered
This might be usefull as well https://github.com/sshaw/copy-as-format
For me it is also a two-step process: remove the linebreaks and then copy. For the first step, I found this command really helpful: https://www.emacswiki.org/emacs/UnwrapLine
I removed the last 3 forms so it doesnβt insert a newline and keeps the cursor from jumping to the original position. Helps me to repeat the command quickly for the next paragraphs.
When I write a lot of prose text, Iβd rather use visual-line-mode , which wraps by word boundary and preserves hard line-breaks (similar to normal word processors).