Question

Is it possible to remove built-in Emacs packages like "tetris"? They can't be marked to be deleted in package list as of 24.1. It would be nice to have a minimal installation of Emacs - even though barely useful - by deleting some or all built-in packages. Is it possible to do somehow, and will this ability added in future?

Was it helpful?

Solution

Emacs should start and be useable even if the whole lisp directory is empty (note that we rarely/never test it, so I don't guarantee that it'll work, but at least in principle it should and if it doesn't you should report it with M-x report-emacs-bug). So feel free to remove any and all packages in there you don't find useful, in order to create a trimmed-down version of Emacs.

OTHER TIPS

You could just remove the elc files of all of the packages you want.

For example, in the version of emacs located in the ubuntu repository the tetris package is located in:

/usr/share/emacs/23.3/lisp/play/tetris.elc

If you move or remove it, emacs will continue to work, but you won't be able to play tetris anymore.

You might want to inspect the package--builtins variable. That said - there is little sense in removing any packages installed via package.el since package.el extracts and loads automatically only a package's autoloads - therefore having many installed packages doesn't result in any significant overhead. I'm quite certain that removing built-in packages will never be a feature of package.el.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top