I have some snippets in my config, that depend on external tools. For example I use
xmodmap at startup.
(if (eq window-system 'x) (if (file-exists-p "/usr/bin/xmodmap") (shell-command "xmodmap -e 'clear Lock' -e 'keycode 66 = F13'")))
Is it possible to install xmodmap automatically if it isn't installed ?
@Ehvince When I install xmodmap in the else clause, the xmodmap command won't be executed. I think I need some piece of code that waits for the subprocess to be finished before executing the xmodmap command ? Another problem is, I can't install a package when I start emacs without sudo. So I need a password prompt, I guess.