I am trying to re-define two functions in two-column.el.gz
, namely 2C-split
and 2C-merge
. Both of those are declared with ;;;###autoload
. I gathered I should use (eval-after-load "two-column" ...)
, because Linux (Ubuntu) won't let me change the original file.
I have this eval-after-load
body in my .emacs
file, more precisely in a settings.org
file which I load from the .emacs
. I have all my code here. When I do find-function
after startup, I am shown this file (inside the eval-after-load
bit). But then, when I do C-x 6 s
, it's the original function which is called, not mine. And after that find-function
sends me to the two-column.el.gz
file.
I tried with-eval-after-load
, I tried the full file path instead of "two-column", but nothing seems to work. after-load-alist
doesn't even show my new functions, unless I specifically load the (eval-after-load ...)
with C-x C-e
- then there is an entry for it.
My questions are both how to load my functions without having to load the file explicitly (which also didn't quite work, but that's a different problem), and why this is happening. I simply do not understand.