Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.
Join us in building a kind, collaborative learning community via our updated
Code of Conduct.
I wrote an elisp function which I would like to bind to the key "C" but only in dired-mode; otherwise it should be the capital letter C. However I am not very familiar with elisp and I did not manage ...
Here is what I would like to do. I would like to customize key bindings that point to a different command depending on the file type on which the user is operating.
For instance, if one presses f5 in ...
This is a follow-up on the comments on this answer. The following bits of code seem to be equivalent:
(and a b)
(when a b)
Of course and lets you put more conditions: (and a b c d) means (when (and ...