Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm going to modify my keyboard to generate em-dash when I input "-"...


Option+shift+dash, on a default English Mac keyboard. Easy to remember—"modify [option] the dash [dash] to make the biggest common form of it [shift]", or else you can think of it as modifying the underscore (shift + dash) to sit higher on the line (with option).


That works well until the following doesn't compile

int x = 1 — 2;


  #define — -
fixes that issue for C.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: