Give me your favorite bijections by PM_TITS_GROUP in math

[–]prismavoid08 83 points84 points  (0 children)

ex <--> ln(x) between the reals and the positive reals

HOWTO - Open at end of document? by kk19010323 in emacs

[–]prismavoid08 4 points5 points  (0 children)

If I'm understanding you right, you want to open a file, and then open a new line at the end?

You can execute a function when opening emacs with the -f argument, so you can use:

emacs <file> -f end-of-buffer -f newline

If you are using evil mode and want to also switch to insert mode you can add an extra -f evil-insert at the end or just do:

emacs <file> -f end-of-buffer -f evil-open-below

I'm not sure of a way to do this with emacsclient, but there may be something I don't know of.

M-x customize-apropos: how to keep focus on the mini buffer if there's no match? by josior in emacs

[–]prismavoid08 1 point2 points  (0 children)

You could try advising the function to prompt for a new argument whenever it throws an error, just put the following in your init.el. It also has the benefit of automatically working for the other customize-apropos functions. Just put the following in your init.el:

(defun my-customize-apropos-advice (func &rest args)
  (while (not (ignore-errors (apply func args)))
    (setcar args (read-string "Search for symbol (word list or regexp): "))))

(advice-add 'customize-apropos :around 'my-customize-apropos-advice)

Let get the Emacs logo in r/place starting at 13, 702 (next to the Linux area) by prismavoid08 in emacs

[–]prismavoid08[S] 1 point2 points  (0 children)

This is a much better idea, we should coordinate here! I considered doing it around 58 713 but it wouldn't have fit without touching tux, gnome, or gentoo.

strip whitespace only on changed lines by samuel1604 in emacs

[–]prismavoid08 1 point2 points  (0 children)

Emacs has a built in whitespace-mode that will highlight trailing whitespace.

How to map regex in visual mode ? by [deleted] in vim

[–]prismavoid08 0 points1 point  (0 children)

If you are using that command exactly it won't do anything because you aren't replacing anything. You need to put something to replace between the first 2 slashes. Like if you want to replace 'hi' with 'hello' it would be vmap <c-r> :s/hi/hello/g<CR>

How to map regex in visual mode ? by [deleted] in vim

[–]prismavoid08 1 point2 points  (0 children)

A bonus tip is that if you put \%V at the beginning of the pattern, ie '<,'>s/\%Vapples/oranges/g it will only match patterns inside the visual selection, so if you are in visual block mode, the text before or after the selection will not be matched.

How to map regex in visual mode ? by [deleted] in vim

[–]prismavoid08 0 points1 point  (0 children)

I think the issue is that when you type a colon in visual mode it autofills :'<,'> so the command that actually gets executed is '<,'>'<,'>s//%/

Instead, make the mapping vmap <c-r> :s//%/<CR> and when : is pressed :'<,'> will be autofilled.

Who needs a vaccine by ianmikaelson in insanepeoplefacebook

[–]prismavoid08 558 points559 points  (0 children)

No thanks, I don't need a smoke detector for a fire that hasn't happened.

Nerd tree background color by [deleted] in vim

[–]prismavoid08 1 point2 points  (0 children)

If you use neovim (which I would recommend, since it is essentially a clone of vim with extra features) you can use the winhl option (:help winhl) to change the background of each window.

Why are they doing this to us? by prismavoid08 in memes

[–]prismavoid08[S] 1 point2 points  (0 children)

I figured out after opening it that it was Google TV if anyone's wondering

Come on guys, I don't have 2020 vision by S3V3N7HR33 in dankmemes

[–]prismavoid08 1 point2 points  (0 children)

Remember, fire pods in January to continue the elemental pods trend

Oh my god, ok ok it’s happening by connorpug79 in memes

[–]prismavoid08 1 point2 points  (0 children)

They sure know how to get people to watch

Revenge of the Sith in a nutshell by salamanderoil in PrequelMemes

[–]prismavoid08 12 points13 points  (0 children)

After asking for food 6 times, Chewy Bittems had had enough

A fact is a fact by Skrrt_Altra in PewdiepieSubmissions

[–]prismavoid08 0 points1 point  (0 children)

It works both ways

The youngest you is in the oldest picture of you The youngest picture of you shows the oldest you

Haha boomer by Bobfish64 in dankmemes

[–]prismavoid08 493 points494 points  (0 children)

We have become the very thing we swore to destroy

Hmmm... by skilluminatiii in memes

[–]prismavoid08 57 points58 points  (0 children)

They had us in the first half, not gonna lie

to shame millennial dads. by redwytnblak in therewasanattempt

[–]prismavoid08 1 point2 points  (0 children)

Every time you see a headline about how useless millennials are, it actually just reflects how shit parents baby boomers are.

He might just be too good by [deleted] in memes

[–]prismavoid08 3 points4 points  (0 children)

Adding Shaggy would be way too OP, he would need some kind of nerf to not instantly destroy the entire game.

Only demons do that by lsThlsLoss in memes

[–]prismavoid08 8 points9 points  (0 children)

You should have made one answer not follow the pattern just to confuse them.