In Emacs, I've become accustomed to using "C-x p" for switching to the previous window.
I've recently had to start including a company-wide startup .el file that defines the prefix "C-x p-". I don't use any of the "C-x p-" shortcuts.
Is there a way that I can undefine the "C-x p-" prefix after it's been defined?
.emacs
file:(eval-after-load "name-of-library-without-the-dot-el-at-the-end" '(progn (define-key name-of-mode-map "\C-c\C-a" nil)(define-key name-of-mode-map "\C-c\C-r" nil)))
You can fill up theprogn
statement with as many things as you want -- insert the corresponding key assignment based on what's in the particular mode-map that you want to nullify and set the value tonil
as in the above-example.