Reputation: 4941
How to apply changes to emacs .el files?
I've done the following:
# locate buff-menu
/usr/share/emacs/22.1/lisp/buff-menu.el.gz
/usr/share/emacs/22.1/lisp/buff-menu.elc
Modify /usr/share/emacs/22.1/lisp/buff-menu.el.gz
- add some custom letters in Buffer-menu-select
doc section.
# rm /usr/share/emacs/22.1/lisp/buff-menu.elc
/usr/share/emacs/22.1/lisp/buff-menu.el.gz
Start emacs and see old description for Buffer-menu-select
Upvotes: 2
Views: 871
Reputation: 8332
We could more easily answer you if you tell us what exactly you want to do. The fact is the correct way to customize Emacs is never to change the .el in Emacs system libraries.
to change a defun you can:
defadvice
)use a new defun
that you will eval in an eval-after-load
(eval-after-load 'buff-menu
'(defun Buffer-menu-mark ()
"do nothing"
(interactive)))
to add a key binding you can again use eval-after-load
:
(eval-after-load 'buff-menu
'(define-key Buffer-menu-mode-map "M" 'Buffer-menu-mark))
Upvotes: 8