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

This is not really a feature, as such, but it is a classic work-around for one emacs' many silly defaults:

            ; Ask for y/n on all queries that normally ask for yes/no.
  (fset 'yes-or-no-p 'y-or-n-p)


I personally don't think that default is silly. I've noticed that some (usually less important) questions use y or n already; the yes/no is reserved for important ones. I don't mind having to type a bit more before recursively deleting a directory, for example.


I do this, but defalias is a better choice for implementing it than fset.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: