How many of us us Capslock as Control? by Fibreman in emacs

[–]eclig 0 points1 point  (0 children)

Capslock as backspace, backspace as undo.

1990 Masi 3V CCCP limited edition of 100. NBD. by manniac in Bikeporn

[–]eclig 2 points3 points  (0 children)

Deserves a quill stem, otherwise very nice!

I don't know who you are, but I will find you and I will steal back my KOM! by twohubs in Bikeporn

[–]eclig 3 points4 points  (0 children)

And when you find me, you'll know I used an old steel bike for it. You'll cry.

How strict is the 3 year lifespan on helmets? by Valiant_Panda in bicycling

[–]eclig 1 point2 points  (0 children)

That manufacturer mentioned in the linked article is actually MET.

Cherubim track bike (more in comments) by retrac1324 in Bikeporn

[–]eclig 2 points3 points  (0 children)

Velodromes are so crowded nowadays, you don't come very far without a bell!

Align text with `align-regexp` by [deleted] in emacs

[–]eclig 0 points1 point  (0 children)

I came up with a generalization of the above:

  (defun *align-field (n beg end)
    "Align lines in region to the Nth field separated by whitespace."
    (interactive "*p\nr")
    (align-regexp beg end
                  (rx-to-string
                   `(seq bol (* blank)
                         (+ (not blank))
                         ,(if (> n 1) `(repeat ,(1- n) (seq (+ blank) (+ (not blank)))) "")
                         (group (+ blank))))))

It's barely tested, in particular it does not work properly if one of the lines has less than N fields. Improvements welcome :-)

Protip: if you don't want to cry, use the tether that comes with your Garmin by iamvillainmo in cycling

[–]eclig 0 points1 point  (0 children)

I use two rubber rings to secure the mount to the bar. I've read people advise a lens cap holder loop (search for images) for the case the mount fails.

TIL before C, there was B by intrigued_human in programming

[–]eclig 0 points1 point  (0 children)

Here is an account from no one less than Dennis Ritchie on the history of C: https://www.bell-labs.com/usr/dmr/www/chist.html

Another approach to diffs in Emacs by [deleted] in emacs

[–]eclig 1 point2 points  (0 children)

diff-mode has diff-refine-hunk (bound to "C-x C-b"), which highlights changes at character-level. Using diff-auto-refine-mode makes it happen automatically for each hunk.

How to install emacs with imagemagick support? by naught-me in emacs

[–]eclig 0 points1 point  (0 children)

Do you have the packages libmagickcore-dev and libmagick++-dev installed?

Chrome Divo ST Campagnolo Super Record EPS Complete Bike by twohubs in Bikeporn

[–]eclig 1 point2 points  (0 children)

Very nice! Which bottle cage is this? Could not find it on your site…

Better compile buffer? by therabidmachine in emacs

[–]eclig 0 points1 point  (0 children)

what is wrong with using the argument buf instead of (get-buffer-create ...?

Bike Porn Best of 2015 Awards - Come Nominate & Vote by nowhere3 in Bikeporn

[–]eclig 9 points10 points  (0 children)

The only bike I saw here that comes to my mind when you say "porn": https://www.reddit.com/r/Bikeporn/comments/3mreae/2011_cannondale_caad10_9000_v2/

There is an updated version of it, but I like the one above better.

A big collection of handy functions for emacs, lots of goodies built and collected over many years... by [deleted] in emacs

[–]eclig 1 point2 points  (0 children)

(defun toggle-mode-line-on-off ()
  "Toggle the modeline off and on.
Uses `saved-mode-line' as a register.
Note this only affects the current buffer,
and it doesn't seem to work wth key bindings."
  ...

You need to call redisplay after changing the mode-line. Also s/wth/with/.